/* =========================================================
   CULTURESTOCK HEADER
   ========================================================= */


/* =========================================================
   PAGE OFFSET
   ========================================================= */

body {
    padding-top: 72px !important;
    overflow-x: hidden !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.cs-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;

    width: 100% !important;

    z-index: 9999;

    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);

    box-sizing: border-box;

    transition: box-shadow .2s ease;
}

.cs-header.is-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}


.cs-header-container {
    width: 100%;
    max-width: 1200px;
    height: 72px;

    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;

    gap: 28px;

    box-sizing: border-box;
}


/* =========================================================
   LOGO
   ========================================================= */

.cs-logo-link {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    overflow: hidden;

    text-decoration: none;

    transition:
        opacity .2s ease,
        max-width .25s ease;
}

.cs-logo-img {
    display: block;

    width: auto !important;
    height: 32px !important;
    max-height: 32px !important;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.cs-nav-menu {
    display: flex;
    align-items: center;

    gap: 24px;

    flex: 0 0 auto;
}

.cs-nav-item {
    font-family: 'Inter', Arial, sans-serif;

    font-size: 16px;
    font-weight: 500;

    white-space: nowrap;

    color: #666666 !important;

    text-decoration: none;

    transition: color .15s ease;
}

.cs-nav-item:hover {
    color: #00695C !important;
}


/* =========================================================
   SEARCH
   ========================================================= */

.cs-search-wrapper {
    position: relative;

    flex: 1 1 420px;

    min-width: 180px;
    max-width: 420px;

    margin-left: auto;
}

.cs-search-box {
    position: relative;
    width: 100%;
}

.cs-search-box input {
    display: block;

    width: 100%;
    height: 40px;

    padding: 0 42px 0 20px;

    box-sizing: border-box;

    border: 1px solid #FF8373;
    border-radius: 999px;

    outline: none;

    background: #ffffff;

    color: #333333;

    font-family: 'Inter', Arial, sans-serif;
    font-size: 13.5px;

    appearance: none;
}

.cs-search-box input:focus {
    border-color: #FF523B;

    box-shadow:
        0 0 0 3px rgba(255, 131, 115, .13);
}


/* SEARCH CLEAR */

.cs-search-clear {
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    padding: 2px 4px;

    border: 0;
    background: transparent;

    color: #999999;

    font-size: 19px;
    line-height: 1;

    cursor: pointer;
}

.cs-search-clear[hidden] {
    display: none;
}


/* =========================================================
   SEARCH RESULT DROPDOWN
   ========================================================= */

.cs-search-dropdown {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    width: 100%;
    max-height: 380px;

    overflow-y: auto;

    display: block !important;
    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    background: #ffffff;

    border: 1px solid #eaeaea;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);

    z-index: 1000;

    transform: translateY(-4px);

    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s;
}

.cs-search-dropdown.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    pointer-events: auto;

    transform: translateY(0);
}


.cs-result-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 14px;

    border-bottom: 1px solid #f4f4f4;

    text-decoration: none;
}

.cs-result-item:last-child {
    border-bottom: 0;
}

.cs-result-item:hover {
    background: #fafafa;
}


.cs-result-thumb {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    overflow: hidden;

    border-radius: 8px;

    background: #f8f8f8;
}

.cs-result-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.cs-result-info {
    min-width: 0;
    flex: 1;
}


.cs-result-title {
    margin: 0 0 2px;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;

    color: #333333;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


.cs-result-price {
    font-family: 'Inter', Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    color: #00695C;
}


.cs-result-stock {
    display: block;

    margin-top: 1px;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 11px;
    font-weight: 500;
}

.cs-stock-in {
    color: #10B981;
}

.cs-stock-out {
    color: #E03E2E;
}


.cs-search-message {
    padding: 16px;

    text-align: center;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 13px;

    color: #777777;
}


.cs-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
}

.cs-search-spinner {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    box-sizing: border-box;

    border: 2px solid #e7e7e7;
    border-top-color: #31A793;

    border-radius: 50%;

    animation: csSearchSpin .65s linear infinite;
}

@keyframes csSearchSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.cs-header-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex: 0 0 auto;
}


.cs-action-btn {
    position: relative;

    width: 38px;
    height: 38px;

    padding: 8px;

    box-sizing: border-box;

    border: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: #222222;

    text-decoration: none;

    cursor: pointer;

    transition: color .15s ease;
}

.cs-action-btn:hover {
    color: #00695C;
}


.cs-icon-svg {
    display: block;

    width: 21px;
    height: 21px;
}


/* =========================================================
   CART BADGE
   ========================================================= */

.cs-cart-badge {
    position: absolute;

    top: 0;
    right: 0;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #E03E2E;

    color: #ffffff;

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   CART OVERLAY
   ========================================================= */

.cs-cart-overlay {
    position: fixed;

    inset: 0;

    z-index: 10000;

    background: rgba(0, 0, 0, .4);

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s;
}

.cs-cart-overlay.active {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   CART DRAWER
   ========================================================= */

.cs-cart-drawer {
    position: fixed;

    top: 0;
    right: 0;

    width: min(380px, 100%);
    height: 100dvh;

    z-index: 10001;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    background: #ffffff;

    box-shadow: -5px 0 25px rgba(0, 0, 0, .15);

    transform: translateX(105%);

    visibility: hidden;

    transition:
        transform .3s cubic-bezier(.16, 1, .3, 1),
        visibility .3s;
}

.cs-cart-drawer.active {
    visibility: visible;

    transform: translateX(0);
}


/* =========================================================
   CART DRAWER HEADER
   ========================================================= */

.cs-drawer-header {
    display: flex;
    justify-content: flex-end;

    padding: 16px 20px;

    border-bottom: 1px solid #f0f0f0;
}


.cs-drawer-close {
    border: 0;

    background: transparent;

    color: #4B5563 !important;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.cs-drawer-close:hover {
    color: #111827 !important;
}


/* =========================================================
   CART DRAWER BODY
   ========================================================= */

.cs-drawer-body {
    flex: 1;

    overflow-y: auto;

    padding: 20px;

    box-sizing: border-box;

    overscroll-behavior: contain;

    font-family: 'Inter', Arial, sans-serif;
}


.cs-cart-empty-text {
    margin: 40px 0 0;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 14px;

    color: #555555;

    text-align: center;
}


/* =========================================================
   CART ITEMS
   ========================================================= */

.cs-drawer-items {
    display: flex;
    flex-direction: column;

    gap: 16px;

    margin-bottom: 24px;
}


.cs-drawer-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding-bottom: 12px;

    border-bottom: 1px solid #f4f4f4;
}


.cs-drawer-item > a {
    flex: 0 0 auto;

    text-decoration: none !important;
}


.cs-drawer-item img {
    display: block;

    width: 56px;
    height: 56px;

    flex: 0 0 56px;

    object-fit: contain;

    border-radius: 8px;

    background: #f9f9f9;
}


.cs-drawer-item-details {
    min-width: 0;

    flex: 1;
}


/* Anti warna biru Elementor / theme */

.cs-cart-drawer .cs-drawer-item-title,
.cs-cart-drawer .cs-drawer-item-title:link,
.cs-cart-drawer .cs-drawer-item-title:visited {
    margin: 0 0 4px;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;

    color: #2F394A !important;

    text-decoration: none !important;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.cs-cart-drawer .cs-drawer-item-title:hover {
    color: #087866 !important;
}


.cs-drawer-item-price {
    font-family: 'Inter', Arial, sans-serif;

    font-size: 12.5px;
    font-weight: 500;

    color: #667085 !important;
}


.cs-drawer-item-remove {
    padding: 6px;

    border: 0;

    background: transparent;

    color: #98A2B3 !important;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;
}

.cs-drawer-item-remove:hover {
    color: #E03E2E !important;
}


/* =========================================================
   CART FOOTER
   ========================================================= */

.cs-drawer-footer {
    margin-top: auto;

    padding-top: 16px;

    border-top: 1px solid #eaeaea;
}


.cs-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 16px;

    margin-bottom: 16px;

    font-family: 'Poppins', Arial, sans-serif;

    font-size: 16px;
    font-weight: 700;

    color: #2F394A !important;
}


.cs-drawer-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   DRAWER BUTTONS
   ========================================================= */

.cs-cart-drawer .cs-btn-continue-shopping,
.cs-cart-drawer .cs-btn-checkout {
    display: flex;

    width: 100%;
    min-height: 44px;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 11px 16px;

    border-radius: 8px;

    font-family: 'Poppins', Arial, sans-serif;

    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;

    text-align: center;
    text-decoration: none !important;

    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}


/* LANJUTKAN BERBELANJA */

.cs-cart-drawer .cs-btn-continue-shopping,
.cs-cart-drawer .cs-btn-continue-shopping:link,
.cs-cart-drawer .cs-btn-continue-shopping:visited {
    border: 1.5px solid #087866 !important;

    background: #ffffff !important;

    color: #087866 !important;
}

.cs-cart-drawer .cs-btn-continue-shopping:hover {
    border-color: #087866 !important;

    background: #087866 !important;

    color: #ffffff !important;
}


/* CHECKOUT SEKARANG */

.cs-cart-drawer .cs-btn-checkout,
.cs-cart-drawer .cs-btn-checkout:link,
.cs-cart-drawer .cs-btn-checkout:visited {
    border: 1.5px solid #FF523B !important;

    background: #FF523B !important;

    color: #ffffff !important;
}

.cs-cart-drawer .cs-btn-checkout:hover {
    border-color: #E0432E !important;

    background: #E0432E !important;

    color: #ffffff !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .cs-header-container {
        padding: 0 32px;

        gap: 24px;
    }

    .cs-nav-menu {
        display: none;
    }

    .cs-search-wrapper {
        max-width: none;

        flex: 1 1 auto;

        min-width: 0;

        margin: 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {
        padding-top: 64px !important;
    }


    .cs-header-container {
        height: 64px;

        padding: 0 20px;

        gap: 20px;
    }


    .cs-logo-img {
        height: 28px !important;
        max-height: 28px !important;
    }


    .cs-search-wrapper {
        flex: 1 1 auto;

        min-width: 0;

        max-width: none;

        margin: 0;
    }


    .cs-search-box input {
        height: 40px;

        padding-left: 16px;

        font-size: 13px;
    }


    /*
     * Desktop cart/account tidak ditampilkan pada mobile.
     * Mobile menggunakan navigasi bawah.
     */

    .cs-desktop-actions {
        display: none !important;
    }


    /*
     * Ketika scroll, logo collapse sehingga search
     * mendapatkan ruang lebih besar.
     */

    .cs-header.is-scrolled .cs-logo-link {
        max-width: 0;

        opacity: 0;

        pointer-events: none;
    }


    .cs-header.is-scrolled .cs-header-container {
        gap: 0;
    }

}


/* =========================================================
   CART OPEN
   ========================================================= */

html.cs-cart-open,
html.cs-cart-open body {
    overflow: hidden !important;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cs-header,
    .cs-logo-link,
    .cs-search-dropdown,
    .cs-cart-overlay,
    .cs-cart-drawer {
        transition: none !important;
    }

}