@import url('https://fonts.googleapis.com/css2?family=Mulish&display=swap');
@import url('../fonts/sailors/sailors.css');
@import url('./style.css');

:root {
    --main-color-variant-1: #FCC863;
    --main-color-variant-2: #FFF0CF;
    --main-color-variant-3: #EF9A26;
    --black-main: #302923;
    --gray-main: #A39884;
    --gray-50: #F9FAFB;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --white-main: #fefffe;
    --white: hsl(0, 0%, 100%);

    /* iron */
    --iron-50: #f5f7f8;
    --iron-100: #edeff2;
    --iron-200: #dfe2e6;
    --iron-300: #d1d5db;
    --iron-400: #b5b9c4;
    --iron-500: #a1a5b3;
    --iron-600: #8b8fa0;
    --iron-700: #777a8b;
    --iron-800: #626471;
    --iron-900: #52555d;
    --iron-950: #303136;

    /* golden-tainoi */
    --golden-tainoi-50: #fff9eb;
    --golden-tainoi-100: #feedc7;
    --golden-tainoi-200: #fdda8a;
    --golden-tainoi-300: #fcc863;
    --golden-tainoi-400: #faa925;
    --golden-tainoi-500: #f4860c;
    --golden-tainoi-600: #d86107;
    --golden-tainoi-700: #b44109;
    --golden-tainoi-800: #92320e;
    --golden-tainoi-900: #782a0f;
    --golden-tainoi-950: #451303;
    
    /* non-cumulative banner */
    
    --primary: hsl(40, 96%, 69%);
    --font-title-2: 'Sailors Condensed', serif;
    --fs-base: 12px;
    --weight-non-cumulative: bold;
    --fs-label-medium: 1.2rem;
    --fs-body-medium: 1.4rem;
    
    --fs-label-medium: 12px;
    --background: hsl(0, 0%, 100%);
    --header-height: 64px;
    --outline: hsl(0, 0%, 93%);
    --mobile-nav-height: 80px;
    --image-background: hsl(0, 0%, 92%);
    --on-background-variant: hsl(20, 3%, 19%);
    --radius-pill: 500px;
    --transition-short: 200ms var(--transition-timing-function);
    --weight-medium: 500;
    --on-background: hsl(0, 3%, 13%);
    --active-indicator: hsl(0, 0%, 70%);
    --primary: hsl(40, 96%, 69%);
    --on-badge-btn: hsl(24, 7%, 14%);
}
@media(prefers-reduced-motion: no-preference) {
    :root {
        /* TRANSITION */
        --transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
        --transition-short: 200ms var(--transition-timing-function);
        --transition-medium: 500ms var(--transition-timing-function);

        --transition-1: 0.25s ease;

        --transition-timing: 0.2s ease;
    }
}

@media (min-width: 992px) {
    :root {
        --fs-display-large: 5.7rem;
        --fs-display-medium: 4.5rem;
        --fs-display-small: 3.6rem;
        --header-height: 90px;
    }
}

* {
    -webkit-text-size-adjust: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Mulish;
}

body {
    background-color: var(--white-main);
    padding-block: calc(var(--header-height)) var(--mobile-nav-height);
}

.main {
    overflow-x: hidden;
}

.banner-section {
    position: relative;
    background-color: #EDEDED;
}

.cards-section {
    background-color: #EDEDED;
}


.banner-img {
    width: 100%;
}

.banner-links {
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    text-align: right;
    max-width: 1920px;
    margin: 0 auto
}

.banner-links a {
    margin-bottom: 10px;
    text-decoration: none;
    color: white;
}

.help-btn {
    display: scroll;
    position: fixed;
    z-index: 1000;
    bottom: 176px;
    right: 48px;
    width: 96px;
}

.help-btn img {
    max-width: 100%;
}

.subscribe-btn {
    display: scroll;
    position: fixed;
    z-index: 1000;
    bottom: 64px;
    right: 48px;
    width: 96px;
}

.subscribe-btn img {
    max-width: 100%;
}

.product-container {
    background-color: var(--background);
}

@media (max-width: 648px) {

    .help-btn {
        bottom: 214px;
        right: 24px;
    }

    .subscribe-btn {
        bottom: 120px;
        right: 24px;
    }
}

@media (max-width: 780px) {
    .banner-links a {
        margin-bottom: 60px;
    }
}

.cards {
    padding: 20px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.card {
    background-color: var(--gray-50);
    border-radius: 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0 2px 6px;
    display: flex;
    width: 22rem;
    height: fit-content;
    flex-direction: column;
    overflow: hidden;
    /*cursor: pointer;*/
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0 6px 16px;
}

.card__preview {
    /* height: 12rem; */
    aspect-ratio: 4 / 5;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card__preview img {
    width: 100%;
    object-fit: cover;
    transition: all 0.4s ease-out;
}

.card:hover .card__preview img {
    transform: scale(1.1);
}

.card__content {
    background-color: var(--white-main);
    aspect-ratio: 22 / 9;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: var(--iron-950);
}


.card__description {
    margin-top: 0.5rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    color: var(--iron-900)
}

@media (min-width: 1024px) {
    .card-header-img {
        max-width: 648px;
        margin-left: auto;
        margin-right: auto;
    }
}


/*
|--------------------------------------------------------------------------
| NON-CUMULATIVE BANNER
|--------------------------------------------------------------------------
*/

.non-cumulative-banner[data-non-cumulative-banner] {
    position: fixed;
    bottom: 0;
    background-color: var(--primary);
    z-index: 4;
    height: 40px;
    width: 100%;
    font-size: var(--fs-base);
    color: #4c4c4c;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 8px;
    font-weight: var(--weight-non-cumulative);
    font-family: var(--font-title-2), sans-serif;
    border-top: 2px solid var(--primary);
    transition: all 0.5s ease-in-out, transform 0.3s ease-in-out;
    animation: slideUp 0.5s ease-in-out forwards;
}

.non-cumulative-banner[data-non-cumulative-banner] span {
    font-weight: var(--weight-non-cumulative);
    font-family: var(--font-title-2), sans-serif;
    color: #4c4c4c;
    transition: all 0.5s ease-in-out, transform 0.3s ease-in-out;
    animation: slideUp 0.5s ease-in-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 438px) {
    .non-cumulative-banner[data-non-cumulative-banner],
    .non-cumulative-banner[data-non-cumulative-banner] span {
        padding-top: 25px;
        padding-bottom: 25px;
    }
}
@media (max-width: 768px) {
    .non-cumulative-banner[data-non-cumulative-banner] span {
        display: none;
    }
}

/* NAV BAR */

/* badge button */

.header .btn-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background-color: var(--primary);
    color: var(--white);
    font-size: var(--fs-label-small);
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50px;
}

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}
.header .btn-primary,
.navbar {
    display: none;
}

.header {
    background-color: var(--background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 20px;
    padding-inline: 16px;
    border-block-end: 1px solid var(--outline);
    z-index: 4;
}

.mis-a {
    margin-inline-start: auto;
}

.logo .logo-light,
.logo .logo-dark {
    max-width: 192px;
    width: 100%;
}

.label-medium {
    font-size: var(--fs-label-medium);
    font-weight: var(--weight-medium);
    line-height: 16px;
    letter-spacing: 0.5px;
}
/*
|--------------------------------------------------------------------------
| MOBILE NAV
|--------------------------------------------------------------------------
*/

.mobile-nav {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background-color: var(--image-background);
    color: var(--on-background-variant);
    padding-block: 12px 16px;
    z-index: 4;
    box-shadow: var(--shadow-1);
}

.mobile-nav .nav-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /*grid-template-columns: repeat(3, 1fr);*/
    text-align: center;
}

.mobile-nav .item-icon {
    width: 64px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    margin-inline: auto;
    margin-block-end: 4px;
    transition: var(--transition-short);
}
/* responsive for larger than 768px screen */

@media (min-width: 768px) {
    /* HEADER */

    .header {
        padding-inline: 32px;
    }

    .header .btn-primary,
    .navbar,
    .navbar-list {
        display: flex;
    }

    .navbar {
        margin-inline-start: auto;
    }

    .navbar-link {
        position: relative;
        height: var(--header-height);
        display: grid;
        grid-template-rows: 1fr min-content;
        align-items: center;
        padding-inline: 24px;
        opacity: 0.9;
    }

    .navbar-link.active {
        opacity: 1;
    }

    .navbar-link.active::before {
        content: '';
        order: 1;
        height: 3px;
        background-color: var(--primary);
        border-radius: var(--radius-pill) var(--radius-pill) 0 0;
    }

    .video-banner-section[data-video-banner-pet-adoption] {
        margin-block: 32px 64px;
    }

    .catalog-section-title img,
    .brands-section-title img {
        display: block;
    }

    /* MOBILE NAV */

    .mobile-nav {
        display: none;
    }

    .footer-container {
        max-width: 720px;
    }
}

/* responsive for larger than 992px screen */

@media (min-width: 992px) {
    /* HEADER */

    .header,
    .navbar-link {
        padding-inline: 40px;
    }

    .filter-bar,
    .filter-bar.active {
        margin-block-start: 0;
    }
   
}

.mobile-nav .nav-link:where(:hover, :focus-visible) .item-icon {
    background-color: var(--alpha-10);

}

.mobile-nav .nav-item[aria-current="true"] {
    color: var(--on-background);
}

.mobile-nav .nav-item[aria-current="true"] .item-icon {
    background-color: var(--active-indicator);
}

.mobile-nav .nav-item[aria-current="true"] .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

@media (min-width: 768px) {
    .navbar-link.active::before {
        content: '';
        order: 1;
        height: 3px;
        background-color: var(--primary);
        border-radius: var(--radius-pill) var(--radius-pill) 0 0;
    }
}

.badge-btn {
    height: 40px;
    border-radius: var(--radius-pill);
    background-color: var(--primary);
    color: var(--on-badge-btn);
    max-width: max-content;
    padding-inline: 16px;
    display: grid;
    place-items: center;
}

.body-medium {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
}

.has-state {
    position: relative;
    overflow: hidden;
}

.has-state::after {
    content: '';
    position: absolute;
    inset: 0;
    transition: var(--transition-short);
}

.has-state:where(:hover, :focus-visible):not(:active)::after {
    background-color: var(--alpha-10);
}

#navbar {
    margin: 0;
    padding: 1.5rem 0;
    position: sticky;
    width: 100%;
    height: 2.5rem;
    top: 0;
    background: #fff;
    z-index: 2;
    max-width: 100vw;
}

#nav-list {
    height: 100%;
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
}
#navbar ul {
    padding-inline-start: 0;
    padding: 0 2.5rem 0 1rem;
    height: 100%;
    width: max-content;
    display: flex;
    gap: 0.75rem;
    white-space: nowrap;
    margin-block-start: 0;
    margin-block-end: 0;
}

#navbar ul:after {
    position: absolute;
    right: 0;
    top: 0;
    height: 95%;
    width: 2rem;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    content: '\0203A';
    background: linear-gradient(
        to left,
        #fff 1.75rem,
        transparent
    );
}

#navbar ul {
    -webkit-mask-image: linear-gradient(
        to left,
        transparent 1.5rem,
        #000 1.5rem
    );
}

#nav-list {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 1rem
    );
}

.btn-filter {
    background-color: var(--gray-200);
    margin-left: auto;
}

.title-small {
    font-size: 16px;
}

[data-side-bar-category] .sidebar-title {
    color: var(--onyx);
    font-size: 15px;
    letter-spacing: 0.8px;
    font-weight: var(--weight-600);
    line-height: 1.25;
    margin-bottom: 10px;
}

.sidebar-category[data-side-bar-category] {
    width: 100%;
    padding: 0px 24px;
}

.card:not(:has(.skeleton)) {
    border-radius: 1.5rem;
}

.btn-filter {
    margin-top: 2rem;
}

.product-container .title-wrapper {
    height: unset;
}

.sidebar-clear-filter {
    width: 100%;
    padding-inline: 24px;
    padding-bottom: 20px;
    display: none;
}

.filter-bar[data-filter-bar] {
    background-color: var(--white-main);
}
