/* MAIN*/

#main {
    display: flex;
    max-width: 80rem;
    margin: 0 auto;
}

#content {
    flex-shrink: 1;
    width: 100%;
    max-width: 100%;
    /* overflow: hidden; */
}

/* NAVBAR */

#navbar {
    height: 4.063rem;
    background-color: white;
    position: sticky;
    z-index: 90;
    top: 0px;
    box-shadow: 1px 1px 5px var(--clr-black-5);

}

#navbar button>img {
    width: 2rem;
    aspect-ratio: 1/1;
}

#navbar button:last-of-type>img {
    /* filter: var(--fltr-orange); */
}

#navbar button {
    background-color: white;
    border: none;
    padding: .5rem;
}

#navbar img#navbar-logo {
    height: 2rem;
}

/* SIDEBAR*/

#sidebar ul,
#faq-list {
    list-style: none;
}


#sidebar {
    /* display: none; */
    position: fixed;
    background-color: rgba(0, 0, 0, .5);
    top: 65px;
    width: 100%;
    height: 100vh;
    /* padding: 1.5rem; */
    /* max-width: 19rem; */
    flex-direction: column;
    justify-content: space-between;
    min-width: 19rem;
    z-index: 91;
}

#sidebar #sidebar-logo {
    display: none;
    margin-bottom: 1rem;
}

#sidebar #sidebar-logo img,
#sidebar #sidebar-logo>div {
    object-fit: contain;
    max-height: 6.25rem;
    height: 6.25rem;
}

#sidebar ul {
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    /* padding: 0 1rem; */
}

#sidebar li a.menu-active {
    /* border-radius: 5rem; */
    /* background-color: white; */
    /* box-shadow: var(--shadow-s); */
    background-color: var(--clr-orange-5);
}

#sidebar li a.menu-active span {
    /* color: var(--clr-black); */
    color: var(--clr-orange);
}

#sidebar li a.menu-active>img {
    filter: var(--fltr-orange);
}

#sidebar li a {
    padding: 1rem 1.5rem;
    /* padding: .75rem 2rem; */
    display: flex;
    gap: .75rem;
    align-items: center;
    color: var(--clr-black-50);
    font-weight: 500;
}

#sidebar ul li a span {
    font-size: var(--sz-sm);
    font-family: 'clash', sans-serif;
}

#sidebar li a img {
    height: 27px;
    width: 27px;
    display: none;
}

#sidebar #sidebar-footer {
    margin-top: .5rem;
    display: none;
    gap: .75rem;
    flex-direction: column;
    padding: 1.25rem;
    padding-top: 1.25rem;
    background: white;
    border-radius: 1rem;
}

#sidebar #sidebar-footer>a.btn-black {
    margin-top: .25rem;
}

#sidebar #sidebar-footer img {
    height: 1.75rem;
    width: 1.75rem;
}


/* NAVIGATION */

.nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.nav-links>.page-numbers {
    padding: .5rem 1rem;
    font-family: var(--ff-clash);
    font-weight: 500;
    font-size: .875rem;
    border-radius: .5rem;
    text-decoration: none;
    color: black;
    margin: 0rem .5rem;
    background-color: var(--clr-gray);
}

.nav-links>span.page-numbers.current {
    background-color: var(--clr-orange);
    color: white;
}

.nav-links>a.page-numbers:hover {
    background-color: var(--clr-black);
    color: white;
}

.nav-links>span.page-numbers.dots {
    background-color: transparent;
}

.nav-links>.page-numbers.next,
.nav-links>.page-numbers.prev {
    background-color: var(--clr-black-5);
    color: var(--clr-black);
    font-family: var(--ff-clash);
    font-weight: 500;
    letter-spacing: var(--l-space-half);
}

.nav-links>.page-numbers.next:hover,
.nav-links>.page-numbers.prev:hover {

    background-color: var(--clr-black);
    color: white;
}

/* GALLERY PAGE */
#gallery-main #gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

#gallery-main #gallery-grid>div>img,
#gallery-main #gallery-grid>div {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    flex: 1;
    object-fit: cover;
    cursor: pointer;
    transition: .1s transform ease-in-out;
}

#gallery-main #gallery-grid>div {
    overflow: hidden;
}

#gallery-main #gallery-grid>div>img:hover {
    transform: scale(110%);
}

#image-modal .card {
    max-width: 50rem;
}

#image-modal #img-preview {
    object-fit: contain;
    width: 100%;
    max-width: 100vh;
    height: 100%;
}



/* ABOUT PAGE*/

#about-main .blog {
    margin-top: 2rem;
}

#about-main .blog img {
    border-radius: .5rem;
    margin: 2rem 0;
    height: 20rem;
    max-height: 20rem;
}

#about-main .title-icon {
    height: 2.8rem;
    width: 2.8rem;
    padding: .5rem;
    border-radius: 9999px;
    background-color: var(--clr-orange-5);
    filter: var(--fltr-orange);
}

/* BLOG PAGE */

#blog-main a {
    display: inline-block;
}

#blog-list {
    display: grid;
    grid-column: 1;
    grid-template-columns: 1fr;
}

#blog-main a .card h2,
#blog-single-main h2 {
    font-family: var(--ff-clash);
    font-weight: 500;
    font-size: var(--sz-lg);
    color: var(--clr-black);
}

/* SINGLE BLOG STYLE */

#blog-single-main #blog-content img {
    width: 100%;
    max-height: 80rem;
    padding: 1rem 0;
}

#blog-single-main #blog-content p {
    line-height: var(--lh-30);
    font-weight: 400;
    color: var(--clr-black-80);
    letter-spacing: .02rem;
    font-size: var(--sz-sm) !important;
}

/* HOME STYLE */

#home-grid {
    display: grid;
    gap: 1.5rem;
    grid-column: 1;
    grid-template-columns: 1fr;
}

#inventory-img {
    display: none;
    max-width: 25rem;
}



/* CONTACT STYLE */

#home-main .links img,
#product-single-main .links img,
#contact-main .links img {
    height: 2.5rem;
    width: 2.5rem;
}

#home-main .links a,
#contact-main .links a {
    height: 5rem;
    width: 5rem;
}

#contact-main #contact-cards {
    gap: 1.5rem;
    display: grid;
    grid-column: 1;
    grid-template-columns: 1fr;
}

#contact-main #contact-cards>div:first-child {
    grid-row-start: 1;
    grid-row-end: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#contact-main #contact-cards>div:first-child .card {
    min-height: 15.5rem;
    justify-content: space-between;
}

#map-card iframe {
    width: 100% !important;
}

/* PRODUCT LIST */
#product-list {
    display: grid;
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#product-list>div {
    border: var(--border-light);
}

#product-list .product-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
}

#no-result {
    grid-column-start: 1;
    grid-column-end: 4;
    text-align: center;
    padding: 2rem;
}

#categories {
    scroll-behavior: smooth;
}

#categories div.flex.gap-3 a>div.card {
    padding: 1rem !important;
}

#category-buttons button {
    width: 3.125rem;
    border-radius: 99px;
    border: none;
    background-color: white;
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#category-buttons button img {
    height: 1rem;
    width: 1rem;
}

.category-shadow {
    scroll-behavior: smooth;
}

.category-shadow ul li {
    padding-right: .25rem;
}

.category-wrapper span {
    transition: transform .2s ease-in-out;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1rem;
    background-image: linear-gradient(90deg, transparent, #fff);
}


/* PRODUCT SINGLE  */


#product-image-wrapper {
    display: grid;
    grid-column: 3;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    border-radius: .5rem;
    overflow: hidden;
    flex-shrink: 0;
}

#product-image-wrapper #product-slide-wrapper img {
    width: 1rem;
    height: 1rem;
}

#product-image-wrapper>div {
    width: 100%;
    aspect-ratio: 1/1;
}

#product-image-wrapper>div>img {
    width: 100%;
    height: 100%;
}

#product-image-wrapper img#product-main-thumbnail {
    grid-column-start: 1;
    grid-column-end: 4;
    width: 100%;
    aspect-ratio: 1 / 1;
}

#product-image-wrapper>div {
    position: relative;
}

#product-image-wrapper>div:first-of-type:hover:after {
    border-bottom-left-radius: .5rem;
}

#product-image-wrapper>div:last-of-type:hover::after {
    border-bottom-right-radius: .5rem;
}

#product-image-wrapper>div:hover::after {
    position: absolute;
    content: '';
    border: 2px solid var(--clr-orange);
    inset: 0 0 0 0;
}


#description-wrapper {
    position: relative;
    height: 145px;
    overflow: hidden;
    transition: height .2s ease-in-out;
}


#description-wrapper::after {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    height: 1.5rem;
    width: 100%;
    background-image: linear-gradient(180deg, transparent, white);
}

#product-wrapper ol#step-list li::marker {
    content: 'Step ' counter(list-item) '. ';
    font-weight: 600;
    color: var(--clr-black);
}

#product-wrapper .button-tab button {
    background-color: transparent;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    gap: .5rem;
    color: var(--clr-black-50);
    font-weight: 600;
    align-items: center;
    padding: 1rem;
    border: none;
}

#product-single-main .button-tab button.active-tab {
    background-color: white;
    color: var(--clr-black);
    border: var(--border-light);
    border-bottom-color: white;
    z-index: 10;
    position: relative;
}

#product-single-main .button-tab button.active-tab::after {
    content: '';
    position: absolute;
    inset: 0 0 0 0;
    bottom: -2px;
    z-index: 10;
    background-color: transparent;
    border-bottom: 2px solid white;
}

#product-single-main .button-tab button.active-tab img {
    filter: var(--fltr-orange);
}

#product-wrapper ol#step-list,
#key-feature-list {
    list-style-position: inside;
}

#key-feature-list {
    list-style-type: number;
}

#key-feature-list li::marker {
    font-weight: 600;
    color: var(--clr-black);
}

#faq-list button {
    background-color: white;
    border: none;
}

#faq-list img {
    margin: .5rem 1rem;
    margin-right: 0;
    height: 2.5rem;
    width: 2.5rem;
    filter: var(--fltr-orange);
}

#product-wrapper #description-card,
#product-wrapper #made-card {
    border-top-left-radius: 0;
}

#product-wrapper #feature-card,
#product-wrapper #faq-card {
    display: none;
}

#product-wrapper #faq-card div.answer-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.15s ease-out;
}

#product-wrapper #faq-card li.close div.answer-wrapper {
    grid-template-rows: 0fr;
}

#product-wrapper #faq-card div.answer-wrapper>p {
    overflow: hidden;
}

#product-wrapper #faq-card li img {
    transition: rotate 0.15s ease-out;
    rotate: 180deg;
}

#product-wrapper #faq-card li.close img {
    rotate: 0deg;
}

#product-wrapper .card {
    min-height: 7rem;
}

/* PRODUCT MODAL */

#product-single-main #message-modal,
#image-modal {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    overflow: auto;
    height: 100vh;
    align-items: center;
    justify-content: center;
    left: 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, .5);
}

#product-single-main #message-modal .card {
    max-width: 30rem;
}

#product-single-main #message-modal .card #message-wrapper {
    cursor: not-allowed;
    border: 1px dashed var(--clr-black-80);
}

#product-single-main #message-modal .card .links input[type="radio"]:checked+label {
    border-color: var(--clr-orange);
}

#product-single-main #message-modal .card .links label:hover {
    border-color: var(--clr-black);
}

#product-single-main #message-modal .card .links label {
    transition: border-color .2s ease-in;
    /* width: 8rem; */
    /* height: 8rem; */
    width: 6.5rem;
    height: 6.5rem;
    padding-top: 1.5rem;
    justify-content: center;
    border-radius: 1rem;
    border: 1.6px solid var(--clr-black-5);
    background-color: white;
    position: relative;
}

#product-single-main #message-modal .card .links input[type="radio"] {
    position: absolute;
    top: .8rem;
    right: .8rem;
    z-index: 10;
    accent-color: var(--clr-orange);
}

#btn-close-modal {
    background-color: white;
    border: none;
    padding: .4rem;
}


/* lAYOUT STYLE */

.main-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    /* border: 1px solid #e8e8e8; */
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
}

#page-scroller {
    position: fixed;
    /* lef bot blu col  */
    box-shadow: 2px 5px 20px var(--clr-black-20);
    bottom: 1rem;
    z-index: 80;
    right: 1rem;
    background-color: white;
    color: var(--clr-black);
    display: none;
    align-items: center;
    gap: .5rem;
}

#page-scroller img {
    filter: var(--fltr-orange);
}


/* INVENTORY STYLE */

#inventory-main table th,
#inventory-main table td {
    padding: .5rem;
}

#inventory-main table,
#inventory-main th,
#inventory-main td {
    text-align: center !important;
    border: 1px solid black;
    border-collapse: collapse;
}

#inventory-main .cell-not-check,
#inventory-main td:has(+.cell-not-check) {
    background-color: var(--clr-black-20);
    min-width: 42.39px;
}

#inventory-main .cell-empty {
    background-color: black;
}