Demas ajustes

This commit is contained in:
2026-10-09 23:02:05 -06:00
parent 220178d421
commit f9666c4088
83 changed files with 10271 additions and 6509 deletions
-418
View File
@@ -195,424 +195,6 @@
{% endif %}
</section>
{% stylesheet %}
.testimonials {
position: relative;
margin-top: 100px;
padding-bottom: 100px;
overflow: hidden;
color: #000;
font-family: Archivo, sans-serif;
}
.testimonials__blob {
position: absolute;
top: 209px;
left: 38px;
width: 434px;
height: auto;
opacity: 0.3;
pointer-events: none;
user-select: none;
}
.testimonials__header {
position: relative;
z-index: 1;
padding-inline: 100px;
}
.testimonials__heading {
margin: 0;
font-family: "Roc Grotesk", Archivo, sans-serif;
font-size: 30px;
font-weight: 500;
line-height: normal;
text-transform: uppercase;
}
.testimonials__subheading {
margin: 10px 0 0;
font-size: 20px;
font-weight: 300;
line-height: 30px;
}
.testimonials__stage {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: minmax(0, 549fr) minmax(220px, 450px);
column-gap: clamp(32px, 10vw, 199px);
align-items: start;
width: min(1198px, calc(100% - 200px));
margin: 100px auto 0;
}
.testimonials__slide[hidden],
.testimonials__product[hidden] {
display: none;
}
.testimonials__meta {
display: flex;
align-items: center;
gap: 20px;
}
.testimonials__stars {
display: flex;
gap: 1px;
color: #000;
}
.testimonials__star {
display: block;
width: 15px;
height: 15px;
}
.testimonials__star svg {
display: block;
width: 15px;
height: 15px;
}
.testimonials__star.is-off {
opacity: 0.25;
}
.testimonials__author {
margin: 0;
font-size: 16px;
font-weight: 400;
line-height: normal;
}
.testimonials__quote {
max-width: 549px;
margin: 60px 0 0;
font-size: 35px;
font-weight: 300;
line-height: 45px;
}
.testimonials__nav {
display: flex;
gap: 20px;
margin-top: 155px;
}
.testimonials__arrow {
display: grid;
width: 30px;
height: 30px;
place-items: center;
padding: 0;
border: 0;
border-radius: 60px;
background: #9dd6c7;
cursor: pointer;
}
.testimonials__arrow:disabled {
cursor: default;
opacity: 0.35;
}
.testimonials__arrow-icon {
display: block;
width: 20px;
height: 20px;
transform: rotate(-90deg);
}
.testimonials__arrow-icon--next {
transform: rotate(90deg);
}
.testimonials__product {
display: flex;
flex-direction: column;
gap: 10px;
}
.testimonials__media {
position: relative;
aspect-ratio: 1;
overflow: hidden;
border: 1px solid #eaeaea;
border-radius: 10px;
background: #fff;
}
.testimonials__media-link {
position: absolute;
inset: 0;
display: block;
}
.testimonials__image {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
.testimonials__image--hover {
position: absolute;
inset: 0;
object-fit: cover;
opacity: 0;
transition: opacity 0.35s ease;
}
.testimonials__media:hover .testimonials__image--hover,
.testimonials__media:focus-within .testimonials__image--hover {
opacity: 1;
}
.testimonials__actions {
position: absolute;
right: 20px;
bottom: 10px;
left: 20px;
z-index: 2;
display: flex;
gap: 10px;
margin: 0;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
}
.testimonials__media:hover .testimonials__actions,
.testimonials__media:focus-within .testimonials__actions {
opacity: 1;
pointer-events: auto;
}
.testimonials__bag,
.testimonials__buy {
display: flex;
align-items: center;
justify-content: center;
height: 50px;
padding: 15px;
border: 0;
border-radius: 60px;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
cursor: pointer;
}
.testimonials__bag {
flex: 0 0 50px;
width: 50px;
background: #000;
}
.testimonials__bag img {
display: block;
width: 25px;
height: 25px;
}
.testimonials__buy {
flex: 1 1 auto;
background: #9dd6c7;
color: #000;
font-family: Archivo, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: normal;
}
.testimonials__bag:disabled,
.testimonials__buy:disabled {
cursor: default;
opacity: 0.55;
}
.testimonials__title {
display: block;
color: #000;
font-size: 18px;
font-weight: 700;
line-height: normal;
text-decoration: none;
}
.testimonials__subtitle {
margin: 5px 0 0;
color: #808181;
font-size: 14px;
font-weight: 300;
line-height: normal;
}
.testimonials__prices {
display: flex;
align-items: center;
margin: 15px 0 0;
}
.testimonials__price,
.testimonials__compare {
width: 70px;
font-size: 16px;
line-height: normal;
}
.testimonials__price {
font-weight: 700;
}
.testimonials__compare {
color: #6e6f6f;
font-weight: 400;
}
.testimonials__arrow:focus-visible,
.testimonials__bag:focus-visible,
.testimonials__buy:focus-visible,
.testimonials__title:focus-visible,
.testimonials__media-link:focus-visible {
outline: 2px solid #000;
outline-offset: 3px;
}
@media (max-width: 1439px) {
.testimonials__header {
padding-inline: 40px;
}
.testimonials__stage {
width: min(1198px, calc(100% - 80px));
}
.testimonials__blob {
left: -40px;
width: 280px;
}
}
@media (max-width: 1024px) {
.testimonials {
margin-top: 50px;
padding-bottom: 80px;
}
.testimonials__blob {
top: 80px;
left: -30px;
width: 180px;
}
.testimonials__header {
padding-inline: 15px;
}
.testimonials__heading {
max-width: 320px;
font-size: 22px;
line-height: 25px;
}
.testimonials__subheading {
margin-top: 10px;
font-size: 14px;
line-height: 15px;
}
.testimonials__stage {
display: flex;
flex-direction: column;
width: min(372px, calc(100% - 30px));
margin-top: 50px;
}
.testimonials__copy {
display: contents;
}
.testimonials__slide {
order: 1;
}
.testimonials__products {
order: 2;
margin-top: 25px;
}
.testimonials__nav {
order: 3;
justify-content: center;
margin-top: 40px;
}
.testimonials__star,
.testimonials__star svg {
width: 12px;
height: 12px;
}
.testimonials__author {
font-size: 13px;
}
.testimonials__quote {
margin-top: 30px;
font-size: 18px;
line-height: 25px;
}
.testimonials__product {
flex-direction: row;
align-items: center;
gap: 10px;
width: min(297px, 100%);
margin-inline: auto;
}
.testimonials__media {
flex: 0 0 70px;
width: 70px;
height: 70px;
aspect-ratio: auto;
}
.testimonials__actions {
display: none;
}
.testimonials__title {
font-size: 14px;
}
.testimonials__subtitle {
font-size: 12px;
}
.testimonials__prices {
margin-top: 6px;
}
.testimonials__price,
.testimonials__compare {
width: auto;
margin-right: 10px;
font-size: 14px;
}
}
@media (prefers-reduced-motion: reduce) {
.testimonials__image--hover,
.testimonials__actions {
transition: none;
}
}
{% endstylesheet %}
{% javascript %}
(() => {
const setCartCount = (count) => {