/* ------------------------------------------------------------ *\
 * MAIN – OUTSIDE
\* ------------------------------------------------------------ */

/* START LOAD */
.start-load {
    background-color: var(--bg-color) !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500000;
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.start-load.active {
    opacity: 0;
    visibility: hidden;
}

.start-load .spinner-border {
    border: 3px solid var(--border-color) !important;
    border-top-color: transparent !important;
    width: 50px !important;
    height: 50px !important;
}

/* START CARD */
.overlay-start-card {
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.overlay-start-card.active {
    opacity: 1;
    visibility: visible;
}

.start-card {
    border-color: transparent !important;
    background-color: var(--bg-color) !important;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--rounded-12);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.0);
    z-index: 1100000;
    width: calc(100% - 32px);
    max-width: 660px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 440px max-content;
    max-height: 90dvh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.start-card.active {
    transform: translate(-50%, -50%) scale(1.0);
    opacity: 1;
    visibility: visible;
}

.start-card .close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.start-card .card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 16px;
}

.start-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0;
    width: 100%;
    max-width: 320px;
}

.start-card .btn { max-width: 100%; }

/* Header */
.header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 80px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
    height: 130px;
}

.header .header-top {
    background-color: var(--text-color);
    color: var(--bg-color) !important;
    display: flex;
    align-items: center;
}

.header .header-top .btn-light { --state-layer-bg: var(--bg-color); }

.header .header-bottom {
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    height: 80px;
    transition: all 0.4s;
}

.header .header-bottom.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: scroll_header 0.4s linear;
}

@keyframes scroll_header {
    0% { transform: translateY(-80px); }
    100% { transform: translateY(0); }
}

.header .header-bottom .nav-item { transition: all 0.4s; }

.header .header-bottom .nav-item:hover { color: var(--main-color) !important; }

.header .header-bottom .nav-item.active { color: var(--main-color) !important; }

.header .header-bottom .icon {
    min-width: 25px;
    max-width: 25px;
    min-height: 25px;
    max-height: 25px;
    transition: all 0.4s;
}

.header .header-bottom .icon:hover { color: var(--main-color) !important; }

.header .header-bottom li:hover .icon { color: var(--main-color) !important; }

.header .header-bottom .drop-user {
    background-color: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-radius: var(--rounded-12);
    padding: 24px;
    width: 290px;
    position: absolute;
    left: 50%;
    transform: translateY(32px) translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.header .header-bottom .drop-user .btn { max-width: 100%; }

.header .header-bottom li:hover .drop-user {
    transform: translateY(16px) translateX(-50%);
    opacity: 1;
    visibility: visible;
}

.header .header-bottom .drop-user .btn-main {
    width: 100%;
    min-height: 45px;
    max-height: 45px;
}

/* NAVBAR MOBILE */
.navbar-mobile {
    background-color: var(--bg-color);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: 100%;
    height: 70px;
    display: grid;
    align-items: center;
    place-items: center;
    grid-template-columns: repeat(5, 1fr);
    transition: all 0.4s;
}

.navbar-mobile.active { box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }

.navbar-mobile .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    --state-layer-bg: var(--text-color);
}

.navbar-mobile .nav-item svg {
    width: 20px;
    height: 20px;
}

.navbar-mobile .nav-item span {
    font-size: 12px;
    font-weight: var(--fw-regular);
}

.navbar-mobile .nav-item.active {
    color: var(--main-color) !important;
    --state-layer-bg: var(--main-color);
}

/* Footer */
.footer { 
    border-top: 1.8px solid var(--border-color); 
    color: var(--text-color) !important;
}

.footer .footer-top { padding-block: 80px; }

.footer .footer-bottom {
    border-top: 1.8px solid var(--border-color);
    padding-block: 17px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 20px;
}

.footer .icon-btn { border: 2px solid var(--text-color) !important; }

.footer .footer-link {
    opacity: .7;
    font-size: var(--fs-p) !important;
    font-weight: var(--fw-regular) !important;
    line-height: var(--lh-p) !important;
    transition: all 0.4s;
}

.footer .footer-link:hover {
    opacity: 1;
    color: var(--main-color) !important;
}

.footer .input-wrapper { position: relative; }

.footer .input-wrapper .form-control {
    border-radius: var(--rounded-full);
    min-height: 50px !important;
    max-height: 50px !important;
    padding-inline: 16px !important;
    padding-inline-end: 50px !important;
}

.footer .input-wrapper .icon-btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);;
}

html[dir="rlt"] .footer .input-wrapper .icon-btn {
    left: 5px;
    right: auto;
}

/* ------------------------------------------------------------ *\
 * MAIN – INSIDE
\* ------------------------------------------------------------ */

/* Auth Section */


/* Hero Section */
.hero { margin-block-end: 80px; }

.hero,
.hero .container {
    display: flex;
    align-items: center;
    justify-content: start;
    height: calc(100dvh - 200px);
}

.hero .carousel-item {
    height: calc(100dvh - 200px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-clip: border-box;
}

.hero .title {
    font-size: var(--fs-h2) !important;
    font-weight: var(--fw-bold) !important;
    line-height: var(--lh-h2) !important;
}

.hero .desc {
    font-size: var(--fs-h3) !important;
    font-weight: var(--fw-regular) !important;
    line-height: var(--lh-h3) !important;
    opacity: 0.7;
}

/* Offer Section */
.offer-section .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr max-content 1fr;
    gap: 16px;
    position: relative;
}

.offer-section .body {
    background-color: var(--bg-color);
    padding: 40px 16px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.offer-section .body .title {
    font-size: var(--fs-h2) !important;
    font-weight: var(--fw-bold) !important;
    line-height: var(--lh-h2) !important;
}

/* Cusyomer Say */
.customer-say .carousel-indicators {
    position: relative;
    margin-block: 16px 0 !important;
}

/* Shop Wrapper */
.shop-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Details Section */
.details-section svg {
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
}

.details-section .product-color { 
    min-width: 30px;
    max-width: 30px;
    min-height: 30px;
    max-height: 30px;
}

.details-section .btn {
    border-radius: var(--rounded-full) !important;
    max-width: 100%;
    flex-grow: 1;
}

.details-section .details-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr max-content;
    column-gap: 50px;
    row-gap: 30px;
}

.details-section .details-card .img-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 106px;
    gap: 20px;
}

.details-section .details-card .img-grid img { border-radius: var(--rounded-12); }

.details-section .details-card .img-grid .image-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
}

.details-section .details-card .img-grid .image-list .img-item { 
    border: 2px solid transparent !important;
    cursor: pointer;
    border-radius: var(--rounded-8); 
    min-width: 80px;
    max-width: 80px;
    min-height: 106px;
    max-height: 106px;
    transition: border 0.4s;
}

.details-section .details-card .img-grid .image-list .img-item:hover { border-color: var(--text-color) !important; }

.details-section .details-card .img-grid .image-list .img-item.active { border-color: var(--text-color) !important; }

.details-section .details-card .details-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-section .details-card .details-body .column {
    display: grid;
    gap: 12px;
}

.details-section .details-card .details-body .wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.details-section .details-card .details-body .wrapper-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.details-section .details-card .details-body .text-category { text-transform: uppercase; }

.details-section .details-card .details-body .wrapper-star {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
}

.details-section .details-card .details-body .text-off { text-decoration: line-through; }

/* FAQs Section */
.faqs .contact-us {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: var(--rounded-12);
}

/* About Us Section */
.about-us .nav { margin-block-end: 20px !important; }

.about-us .nav-link {
    font-size: var(--fs-h6) !important;
    font-weight: var(--fw-medium) !important;
    line-height: var(--lh-h6) !important;
}

.about-us .nav-link.active { border-bottom-color: var(--main-color) !important; }

.about-us .tab-pane {
    padding: 0 !important;
    border-color: transparent !important;
}

/* Blog Details */
.blog .photo-attachment {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height: calc(100dvh - 130px);
    object-fit: cover;
}

/* Checkout */
.checkout .container { display: grid; }

.checkout .container .column {
    padding-block: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.checkout .container .column.column-1 { border-bottom: 1.8px solid var(--border-color); }

.checkout .container .card-outline {
    border: 1.8px solid var(--border-color);
    border-radius: var(--rounded-8);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout .container .select-item {
    padding: 12px 20px;
    border-radius: var(--rounded-8);
    border: 1.8px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 51.2px !important;
    overflow: hidden;
    transition: all 200ms;
}

.checkout .container .select-item:first-child:has(:checked) {
    background-color: var(--second-bg-color) !important;
    border-color: transparent !important;
    height: max-content !important;
}

.checkout .container .select-item input[type="radio"] {
    width: max-content;
    max-width: max-content;
}

.checkout .container .select-item label {
    text-align: start;
    width: 100%;
}

.checkout .container .separator {
    background-color: var(--border-color);
    width: 100%;
    height: 1.8px;
}

.checkout .container .input-code {
    padding-inline-end: 115px !important;
    min-height: 53.2px !important;
}

.checkout .container .btn-code {
    position: absolute;
    top: 50%;
    right: 8.6px;
    transform: translateY(-50%);
}

html[dir="rtl"] .checkout .container .btn-code {
    left: 8.6px;
    right: auto;
}

/* Shopping Cart */
.shopping-cart .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
}

.shopping-cart .form-box { margin-block-start: 28px; }

.shopping-cart .input-code {
    padding-inline-end: 115px !important;
    min-height: 53.2px !important;
}

.shopping-cart .btn-code {
    position: absolute;
    top: 50%;
    right: 8.6px;
    transform: translateY(-50%);
}

html[dir="rtl"] .shopping-cart .btn-code {
    left: 8.6px;
    right: auto;
}

.shopping-cart .separator {
    background-color: var(--border-color);
    width: 100%;
    height: 1.8px;
}

.shopping-cart .shopping-card-total {
    background-color: #f7f7f7;
    border-radius: var(--rounded-12);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shopping-cart .shopping-card-total .title { margin-block-end: 8px !important; }

.shopping-cart .shopping-card-total .btn.btn-main {
    border-radius: 1000px;
    width: 100%;
    max-width: 100%;
}

.shopping-cart .shopping-card-total .btn-link { border: none !important; }