/* Navigation CSS */
.nav {
    min-height: 64px;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.nav__logo {
    color: var(--text-color-black);
    line-height: 64px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: auto 20px;
}

.nav__list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    justify-content: center;
    display: flex;
    margin: auto;
    list-style: none;
    padding-inline-start: 0px;
}

.nav__list a {
    position: relative;
    padding: 0 28px;
    line-height: 64px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color-black);
    transition: color 0.2s;
}

.nav__list a::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 18px;
    height: 2px;
    background-color: var(--text-color-blue);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav__list a:hover {
    color: var(--text-color-blue);
}

.nav__list a:hover::after {
    transform: scaleX(1);
}

.nav__btn {
    width: 22px;
    height: 22px;
    margin-left: 16px;
    color: var(--text-color-black);
    display: none;
    cursor: pointer;
}

.nav__mobile-wrapper:hover .nav__btn {
    opacity: 0.6;
}

.nav__overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    animation: fadeIn linear 0.2s;
}

.nav__mobile {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 200px;
    max-width: 100%;
    background-color: var(--white-color);
    transform: translateX(-100%);
    opacity: 0;
    transition: all linear 0.2s;
}

.nav__mobile-list {
    padding-inline-start: 0px;
    margin-top: 40px;
}

.nav__mobile a {
    display: block;
    padding-left: 40px;
    line-height: 50px;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-color-black);
    font-size: large;
    cursor: pointer;
}

.nav__mobile a:hover {
    color: var(--text-color-blue);
}

.nav__mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-color-black);
    cursor: pointer;
}

.nav__mobile-close:hover {
    opacity: 0.6;
}

.nav__input {
    display: none;
}

.nav__input:checked~.nav__overlay {
    display: block;
}

.nav__input:checked~.nav__mobile {
    transform: translateX(0%);
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* End Navigation CSS */

/* Introduction CSS */
#introduction {
    background-color: var(--background-color-grey);
    overflow: hidden;
}

.intro__body {
    padding-top: 100px;
    padding-bottom: 60px;
    align-items: center;
}

.intro__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro__tag,
.products__tag,
.contact__tag {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--text-color-blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 16px;
}

.intro__heading {
    font-size: 40px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-color-black);
    margin: 0 0 20px;
}

.intro__heading-accent {
    color: var(--text-color-blue);
}

.intro__paragraph {
    width: 90%;
    font-size: 17px;
    color: var(--text-color-grey);
}

.intro__actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 48px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
    background-color: var(--text-color-blue);
    color: var(--white-color);
}

.btn--primary:hover {
    opacity: 0.85;
}

.btn--outline {
    background-color: transparent;
    color: var(--text-color-black);
    border: 1px solid #ccc;
}

.btn--outline:hover {
    border-color: var(--text-color-blue);
    color: var(--text-color-blue);
}

.intro__stats {
    max-width: 420px;
}

.intro__stat-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color-black);
}

.intro__stat-label {
    font-size: 14px;
    color: var(--text-color-grey);
}

.intro__photo {
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
}

.intro__photo::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 24px;
    top: -24px;
    right: 6%;
    z-index: 0;
}

.intro__company-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}
/* End Introduction CSS */

/* Products CSS */
#products {
    padding-top: 60px;
}

.products__header {
    text-align: center;
    margin-bottom: 20px;
}

.products__heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color-black);
    margin: 0;
}

.products__filter-content {
    background-color: var(--white-color);
    border: 1px solid #ececec;
    min-height: 300px;
    margin-top: 16px;
    border-radius: 8px;
}

.products__category-title {
    padding-top: 16px;
    padding-left: 16px;
    font-size: large;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products__category-list {
    padding-bottom: 16px;
}

.products__category-list > li {
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.products__category-list > li:hover {
    color: var(--text-color-blue);
}

.products__category-list ul {
    margin-top: 4px;
}

.products__category-list ul li {
    font-weight: 400;
    font-size: 15px;
    padding: 6px 16px 6px 28px;
    color: var(--text-color-grey);
    cursor: pointer;
    transition: color 0.2s;
}

.products__category-list ul li:hover {
    color: var(--text-color-blue);
}

.products__list {
    /* background-color: coral; */
    padding-bottom: 16px;
}

.products__item {
    margin-top: 16px;
    background-color: var(--white-color);
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.products__item:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.products__item-img {
    padding-top: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: ghostwhite;
}

.products__item-name {
    font-size: 18px;
    line-height: 1.8rem;
    height: 3.6rem;
    margin: 10px;
    overflow: hidden;
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}

.products__item-price {
    font-size: 18px;
    margin: 10px;
    color: var(--text-color-blue);
}

.products__item-origin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px 12px;
    font-size: 13px;
    text-wrap: nowrap;
    overflow: hidden;
}

.products__item-brand {
    font-weight: 500;
    color: var(--text-color-black);
    overflow: hidden;
    text-overflow: ellipsis;
}

.products__item-from {
    flex-shrink: 0;
    margin-left: 8px;
    padding: 2px 8px;
    background-color: rgba(0, 86, 179, 0.08);
    color: var(--text-color-blue);
    border-radius: 10px;
    font-size: 12px;
}
/* End Products CSS */

/* Contact CSS */
#contact {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: 500px;
    background-color: var(--background-color-grey);
    text-align: center;
}

.contact__heading {
    width: 100%;
    margin-top: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.contact__card {
    text-align: left;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 40px;
    margin: 32px 0 0;
}

.contact__form {
    margin: 0;
}

.contact__form-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 0;
}

.contact__form-content--top {
    align-items: flex-start;
}

.contact__form-label {
    flex: 0 0 130px;
    font-weight: 500;
}

.contact__form .form-input-field {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__form .form-input-field:focus {
    outline: none;
    border-color: var(--text-color-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

#contact__form-message {
    height: 100px;
    resize: vertical;
}

#submit-form-button {
    margin-top: 16px;
    margin-bottom: 16px;
    color: #fff;
    background-color: var(--text-color-blue);
    padding: 8px 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
    border-radius: 4px;
}

#submit-form-button:hover {
    opacity: 0.8;
}

.contact__info {
    margin-top: 0;
}

.contact__info-content {
    display: flex;
    align-items: center;
    margin-left: 0;
    margin-bottom: 16px;
}

.contact__info-content:nth-child(1) {
    padding-bottom: 6px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.contact__info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: 14px;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 50%;
}

.contact__info-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--text-color-blue);
}
/* End Contact CSS */

/* Footer CSS */
#footer {
    background-color: var(--background-color-dark);
    padding: 56px 16px 32px;
    text-align: center;
}

.socialnetwork-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.socialnetwork-icon svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.8);
    transition: fill 0.2s;
}

.socialnetwork-icon:hover {
    background-color: var(--text-color-blue);
    transform: translateY(-3px);
}

.socialnetwork-icon:hover svg {
    fill: var(--white-color);
}

.copyright {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}
/* End Footer CSS */

/* nav responsive */
@media (max-width: 1023px) {
    .nav__list a {
        padding: 0 30px;
    }
}

@media (max-width: 740px) {
    .nav__list {
        display: none;
    }

    .nav__mobile-list {
        text-align: left;
    }

    .nav {
        text-align: center;
    }

    .nav__logo {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        pointer-events: none;
    }

    .nav__logo a {
        pointer-events: auto;
    }

    .nav__btn {
        display: block;
    }

    .nav__mobile {
        display: block;
    }
}
/* End nav responsive */

/* intro responsive */
@media (max-width: 1023px) {
    .intro__heading {
        font-size: 32px;
    }

    .intro__paragraph {
        width: 100%;
    }

    .intro__photo {
        margin-top: 40px;
    }

    .intro__photo::before {
        width: 70%;
        height: 70%;
    }

    .intro__company-image {
        max-width: 80%;
        width: 80%;
    }
}

@media (max-width: 740px) {
    .intro__heading {
        font-size: 28px;
    }

    .intro__actions {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .btn {
        text-align: center;
    }

    .intro__stats {
        max-width: 100%;
    }
}

@media (max-width: 418px) {
    .intro__company-image {
        width: 90%;
    }
}
/* End intro responsive */

/* contact responsive */
@media (max-width: 1024px) {
    .products__item-origin {
        font-size: 12px;
        font-weight: 300;
    }

    .contact__info {
        margin-top: 32px;
    }

    .contact__card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .contact__form-content {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .contact__form-label {
        flex-basis: auto;
    }

    .contact__card {
        padding: 20px;
    }
}
/* End contact responsive */

/* product responsive */
@media (max-width: 1439px) {
    .products__item-name {
        font-size: 16px;

    }
    
    .products__item-price {
        font-size: 16px;
    }

    .products__item-origin {
        font-size: 12px;
    }
}
/* End product responsive */

/* Product Detail CSS */
.products__item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-detail__breadcrumb {
    padding-top: 96px;
    font-size: 14px;
    color: var(--text-color-grey);
}

.product-detail__breadcrumb a {
    color: var(--text-color-grey);
    text-decoration: none;
}

.product-detail__breadcrumb a:hover {
    color: var(--text-color-blue);
}

.product-detail__breadcrumb span {
    margin: 0 8px;
}

.product-detail__breadcrumb-current {
    color: var(--text-color-black);
    font-weight: 500;
}

.product-detail__body {
    margin-top: 24px;
    padding-bottom: 40px;
    align-items: flex-start;
}

.product-detail__gallery {
    display: flex;
    justify-content: center;
}

.product-detail__image-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: ghostwhite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail__name {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-color-black);
    margin: 0 0 12px;
}

.product-detail__price {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color-blue);
    margin-bottom: 16px;
}

.product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.product-detail__meta span {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.product-detail__brand {
    background-color: var(--background-color-grey);
    color: var(--text-color-black);
    font-weight: 500;
}

.product-detail__origin {
    background-color: rgba(0, 86, 179, 0.08);
    color: var(--text-color-blue);
    font-weight: 500;
}

.product-detail__summary {
    color: var(--text-color-grey);
    margin: 0 0 28px;
}

.product-detail__actions {
    display: flex;
    gap: 16px;
}

.product-detail__sections {
    padding-bottom: 60px;
    align-items: flex-start;
}

.product-detail__description,
.product-detail__specs {
    background-color: var(--white-color);
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 28px;
    margin-top: 16px;
}

.product-detail__section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color-black);
    margin: 0 0 16px;
}

.product-detail__description-content p {
    color: var(--text-color-grey);
    margin: 0 0 16px;
}

.product-detail__description-content ul {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--text-color-grey);
}

.product-detail__description-content li {
    margin-bottom: 8px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid #ececec;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 10px 0;
    font-weight: 400;
}

.spec-table th {
    width: 40%;
    color: var(--text-color-grey);
    font-weight: 500;
}

.spec-table td {
    color: var(--text-color-black);
}
/* End Product Detail CSS */

/* product detail responsive */
@media (max-width: 1023px) {
    .product-detail__gallery {
        margin-bottom: 24px;
    }
}

@media (max-width: 740px) {
    .product-detail__breadcrumb {
        padding-top: 88px;
    }

    .product-detail__name {
        font-size: 24px;
    }

    .product-detail__actions {
        flex-direction: column;
    }

    .product-detail__actions .btn {
        text-align: center;
    }
}
/* End product detail responsive */
