.signin-header,
.navbar-nav .nav-link,
.profile,
.dropdown-item,
.dropdown-section h6,
footer,
footer h1,
.footer-item-list a,
.text-content p,
.copyright {
    font-variant-numeric: lining-nums;
    font-feature-settings: 'lnum' 1;
}
html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f2f1ed;
}

/* =====================
   SIGN-IN HEADER BAR
   ===================== */
.signin-header {
    background-color: #064438;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 7px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.signin-header:hover {
    color: #ffffff;
    text-decoration: none;
}
.signin-header .name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================
   NAVBAR
   ===================== */
.con-navbar,
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(6, 68, 56, 0.15);
    box-shadow: none !important;
    padding-top: 0;
    padding-bottom: 0;
}

.logo-header {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.container-navbar {
    background-color: transparent !important;
    border-radius: 0;
    padding: 0;
}

/* =====================
   NAV LINKS
   ===================== */
.navbar-nav .nav-link {
    font-family: 'Inter', serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #064438 !important;
    padding: 18px 14px !important;
    position: relative;
    transition: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Remove ALL Bootstrap nav-underline effects */
.nav-underline .nav-link,
.nav-underline .nav-link.active,
.nav-underline .nav-link:hover,
.nav-underline .nav-link:focus,
.nav-underline .show > .nav-link {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Hover — color stays same, only underline appears */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #064438 !important;
    opacity: 1 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Custom underline via ::before (avoids Bootstrap ::after conflict) */
.navbar-nav .nav-item .nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 14px;
    right: 14px;
    height: 1px;
    background-color: #064438;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
    pointer-events: none;
}
.navbar-nav .nav-item .nav-link:hover::before,
.navbar-nav .nav-item .nav-link:focus::before,
.navbar-nav .nav-item.show > .nav-link::before {
    transform: scaleX(1);
}
/* Profile icon — no underline animation */
.navbar-nav .nav-item .nav-link.profile::before,
.navbar-nav .nav-item .nav-link.profile:hover::before,
.navbar-nav .nav-item .nav-link.profile:focus::before {
    display: none !important;
}

/* Remove Bootstrap dropdown caret */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

/* =====================
   PROFILE ICON
   ===================== */
.profile {
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 8px !important;
    font-family: 'Inter', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #064438;
}
.profile .bi-person-circle {
    font-size: 20px;
}

/* =====================
   DROPDOWN MENU (Skin Check, Contact Us, Profile)
   ===================== */
.dropdown-menu {
    border: 1px solid rgba(6, 68, 56, 0.15) !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    margin-top: 0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important;
    min-width: 160px;
}

@keyframes dropFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Regular dropdown items */
.dropdown-item {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #064438 !important;
    background-color: transparent !important;
    padding: 8px 20px !important;
    padding-left: 20px !important;
    transition:
        color 0.22s ease,
        opacity 0.22s ease,
        padding-left 0.22s ease !important;
    display: block;
    width: 100%;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: transparent !important;
    color: rgba(6, 68, 56, 0.45) !important;
    padding-left: 26px !important;
}

/* =====================
   CATALOG MEGA DROPDOWN (Product)
   ===================== */
.catalog-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 0 18px 8px;
    min-width: 500px;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease !important;
    border-top: 2px solid #064438;
    background-color: #ffffff !important;
    pointer-events: none;
}

.nav-item.dropdown.show .catalog-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.dropdown-columns {
    padding: 0 20px;
    border-right: 1px solid rgba(6, 68, 56, 0.1);
    flex: 0 0 auto;
}
.dropdown-columns:last-child {
    border-right: none;
}

.dropdown-section {
    width: 140px;
}

.dropdown-section h6 {
    font-family: 'Inter', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #064438;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(6, 68, 56, 0.2);
}

/* Catalog items — override .dropdown-item rules above */
.catalog-dropdown .dropdown-item {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: #064438 !important;
    background-color: transparent !important;
    padding: 3px 0 !important;
    display: block;
    width: 100%;
    line-height: 1.5;
}
.catalog-dropdown .dropdown-item:hover,
.catalog-dropdown .dropdown-item:focus {
    background-color: transparent !important;
    color: rgba(6, 68, 56, 0.45) !important;
    padding-left: 3px !important;
}

.dropdown-divider.full-width-divider {
    border-top: 1px solid rgba(6, 68, 56, 0.12);
    margin: 6px 0;
}

/* =====================
   NAVBAR TOGGLER
   ===================== */
.navbar-toggler {
    border: 1px solid rgba(6, 68, 56, 0.3);
    border-radius: 0;
    padding: 6px 10px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%286, 68, 56, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================
   OFFCANVAS CART
   ===================== */
.title-divider {
    width: 90%;
    height: 1px;
    background-color: #064438;
    margin: 10px auto;
}

.btn-checkout {
    background-color: #064438;
    color: white;
    border: none;
    border-radius: 0;
    padding: 12px 64px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.btn-checkout:hover {
    background-color: #042f28;
    color: white;
}

/* =====================
   FOOTER
   ===================== */
footer {
    background-color: #064438;
    color: white;
}
.footer-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 28px 20px 16px;
}
.footer-item-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
    margin-right: 20px;
}
footer ul {
    list-style-type: none;
    padding: 0;
}
footer li {
    margin: 4px 0;
}
footer h1 {
    font-family: 'Jacques Francois', serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 10px 0 6px;
    margin: 0;
    text-transform: uppercase;
}
.footer-item-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
.footer-item-list a:hover {
    color: #ffffff;
}
.footer-item-list h1 + hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 6px 0 10px;
}
.social-icon {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.social-icon img:hover {
    opacity: 1;
}
.namapt {
    display: flex;
    align-items: center;
    padding: 14px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 6px;
}
.namapt img {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-right: 20px;
    opacity: 0.9;
}
.text-content p {
    margin: 2px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
}
.copyright {
    background-color: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.6);
    text-align: end;
    padding: 8px 24px;
    font-size: 13px;
    letter-spacing: 0.07em;
    width: 100%;
}

/* =====================
   SLIDER & SHOWCASE
   ===================== */
#slider {
    margin: 0;
    padding: 18px;
    width: 100vw;
    max-width: 100%;
    position: relative;
}
#slider .carousel-item img {
    margin: 0;
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
    object-position: 50% 60%;
}
#slider .carousel-item {
    overflow: hidden;
}
.slider-shopnow {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}
.slider-shopnow a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 36px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}
.slider-shopnow a:hover {
    background-color: rgba(6, 68, 56, 1);
    color: white;
}
.carousel-control-prev,
.carousel-control-next {
    padding: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-control-prev {
    left: 20px;
    padding: 8px;
}
.carousel-control-next {
    right: 20px;
    padding: 8px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    filter: none;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.55);
}
#showcase {
    width: 100%;
    max-width: none;
    padding: 32px;
}
.showcase-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.showcase-kiri,
.showcase-kanan {
    flex-grow: 1;
    min-height: 200px;
}
.showcase-kiri {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.showcase-kanan {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
}
.showcase-img-item,
.showcase-img-item-sec {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
}
.showcase-img-item img {
    width: 100%;
    object-fit: cover;
    height: 492px;
    border-radius: 8px;
}
.showcase-img-item-sec img {
    width: 100%;
    object-fit: cover;
    height: 240px;
    border-radius: 8px;
}
#slider-product {
    margin: 0;
    padding: 0 0 32px 0;
    width: 100%;
    max-width: 100vw;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.circle-carousel {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    overflow: visible;
}
.circle-carousel .carousel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}
.circle-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.circle-carousel .carousel-control-prev,
.circle-carousel .carousel-control-next {
    padding: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.circle-carousel .carousel-control-prev {
    left: calc(50% - 240px);
}
.circle-carousel .carousel-control-next {
    right: calc(50% - 240px);
}
.circle-carousel .carousel-control-prev-icon,
.circle-carousel .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(21%) sepia(72%) saturate(1610%)
        hue-rotate(336deg) brightness(90%) contrast(92%);
    width: 20px;
    height: 20px;
    background-size: contain;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* =====================
   RESPONSIVE — TABLET (≤ 768px)
   ===================== */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 12px 12px !important;
        font-size: 13px !important;
    }
    .navbar-nav .nav-item .nav-link::before {
        display: none;
    }
    .container-navbar {
        background-color: transparent !important;
    }
    .catalog-dropdown {
        flex-direction: column !important;
        min-width: unset !important;
        border-top: none !important;
        padding: 8px 0;
        /* Reset desktop opacity/visibility trick — biarkan Bootstrap yang handle show/hide */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        /* Sembunyikan via display, Bootstrap toggle .show akan pakai display:block */
        display: none !important;
    }
    .nav-item.dropdown.show .catalog-dropdown {
        display: block !important;
    }
    .dropdown-columns {
        border-right: none;
        padding: 0 12px;
    }
    .showcase-kiri {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .showcase-img-item img {
        height: 240px;
    }
    .navbar-brand {
        margin-right: 16px;
    }
    .footer-item {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-item-list {
        margin: 0;
    }
    .namapt {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }
    .namapt img {
        margin-bottom: 10px;
    }
    .text-content p {
        text-align: center;
    }
    .logo-header {
        height: 32px;
    }
}

/* =====================
   RESPONSIVE — MOBILE (≤ 480px)
   ===================== */
@media (max-width: 480px) {
    .logo-header {
        height: 26px;
    }
    .container-navbar {
        background-color: transparent !important;
    }
    .catalog-dropdown {
        flex-direction: column !important;
        display: none !important;
    }
    .nav-item.dropdown.show .catalog-dropdown {
        display: block !important;
    }
    .circle-carousel {
        width: 300px;
        height: 300px;
    }
    .circle-carousel .carousel-control-prev {
        left: 20px;
    }
    .circle-carousel .carousel-control-next {
        right: 20px;
    }
    .footer-item {
        grid-template-columns: 1fr;
    }
    .footer-item-list {
        margin: 0;
    }
    .copyright {
        font-size: 11px;
        padding: 8px;
    }
}
