@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    color: #31353B;
    background: #f5f5f5 url('../img/body-bg.png') repeat 50%/224px;
    background-attachment: fixed;
}

/* Header Cart Button */
.header-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #28a745;
    font-size: 32px;
    text-decoration: none;
    transition: all 0.2s;
}

.header-cart-btn:hover {
    background: #e0e0e0;
    color: #218838;
}

.header-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.favorite {
    cursor: pointer;
    padding: 5px 8px 3px 8px;
    background: #dddddd;
    border-radius: 50%;
    display: inline-block;
    margin: 0 0 15px;
    color: #fff;
    transition: .2s;
}

.favorite:hover {
    color: #e23b3b;
}

.favorite:before {
    font-family: fontawesome;
    content: '\f004';
    font-style: normal;
}

.favorite.press {
    animation: size .4s;
    color: #e23b3b;
}

.vertikal {
    border-color: 1px solid #e1e2e7;
}

.size {
    cursor: pointer;
    width: 100%;
    margin: 0px 10px 0px 0px;
}

.size .size-item {
    padding: 8px;
    border: 1px solid #e1e2e7;
    border-radius: 5px;
}

.size .size-item span {
    display: block;
    font-size: 14px;
    line-height: 24px;
    color: #333;
}

.size .size-item:hover {
    box-shadow: 0px 3px 5px 0px #e8e8e8;
}

.size input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size input[type="radio"]:checked+.size-item {
    border: 1px solid #4FD15A;
    background-color: #EBFFEF;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: #4a4a4a;
}

a:hover {
    cursor: pointer;
    text-decoration: none;
    color: #28a745;
}

.btn {
    border-radius: 10px;
}

.form-control {
    border-radius: 10px;
}

.form-voucher {
    border: none;
    outline: none;
}

.form-border {
    background: #28a745;
    height: 1px;
    width: 100%;
}

.trash-item {
    cursor: pointer;
}

.trash-item:hover {
    cursor: pointer;
    color: #dc3545;
}

.btn-qty:hover {
    cursor: pointer;
    color: #28a745;
}

.funkyradio div {
    clear: both;
    overflow: hidden;
}

.funkyradio label {
    width: 100%;
    border-radius: 3px;
    border: 1px solid #D1D3D4;
    font-weight: normal;
}

.funkyradio input[type="radio"]:empty,
.funkyradio input[type="checkbox"]:empty {
    display: none;
}

.funkyradio input[type="radio"]:empty~label,
.funkyradio input[type="checkbox"]:empty~label {
    position: relative;
    line-height: 2.5em;
    text-indent: 3.25em;
    margin-top: 2em;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.funkyradio input[type="radio"]:empty~label:before,
.funkyradio input[type="checkbox"]:empty~label:before {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    content: '';
    width: 2.5em;
    background: #D1D3D4;
    border-radius: 3px 0 0 3px;
}

.funkyradio input[type="radio"]:hover:not(:checked)~label,
.funkyradio input[type="checkbox"]:hover:not(:checked)~label {
    color: #888;
}

.funkyradio input[type="radio"]:hover:not(:checked)~label:before,
.funkyradio input[type="checkbox"]:hover:not(:checked)~label:before {
    content: '\2714';
    text-indent: .9em;
    color: #C2C2C2;
}

.funkyradio input[type="radio"]:checked~label,
.funkyradio input[type="checkbox"]:checked~label {
    color: #777;
}

.funkyradio input[type="radio"]:checked~label:before,
.funkyradio input[type="checkbox"]:checked~label:before {
    content: '\2714';
    text-indent: .9em;
    color: #333;
    background-color: #ccc;
}

.funkyradio input[type="radio"]:focus~label:before,
.funkyradio input[type="checkbox"]:focus~label:before {
    box-shadow: 0 0 0 3px #999;
}

.funkyradio-success input[type="radio"]:checked~label:before,
.funkyradio-success input[type="checkbox"]:checked~label:before {
    color: #fff;
    background-color: #5cb85c;
}

.radio-checked {
    height: 66px;
    display: flex;
    padding: 16px;
    background: #fff;
    border: 1px solid #f2f2f2;
    box-sizing: border-box;
    border-radius: 4px;
}

.radio-payment {
    /* opacity: 0; */
    /* position: absolute; */
    width: 51%;
    height: 44px;
}

.label_item {
    height: 24px;
    margin-right: 16px;
    min-width: 16px;
}

.label_item img {
    width: 24px;
}

.root {
    width: 100%;
    max-width: 480px;
    margin: -8px auto auto auto;
    padding-bottom: 100px;
    overflow: hidden;
    box-shadow: 0 0 24px rgb(0 0 0 / 15%);
    min-height: 100vh;
    background-color: #fff;
}

.common-page {
    width: 100%;
    max-width: 480px;
    margin-top: 90px;
}

.verify-otp {
    width: 100%;
    max-width: 480px;
    margin-top: 50%;
}

.header-index {
    max-width: 480px;
    width: 100%;
    height: 156px;
    top: 0;
    z-index: 2;
    position: fixed;
    background: url('../img/top-index.png');
    background-repeat: no-repeat;
    background-size: 100%;
}

.bottom-index img {
    max-width: 480px;
    width: 100%;
    bottom: 0;
    z-index: 10;
    position: fixed;
}

.header {
    max-width: 480px;
    width: 100%;
    height: 110px;
    top: 0;
    z-index: 10;
    padding-top: 10px;
    position: fixed;
    background-color: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 9%);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.header-login {
    max-width: 480px;
    width: 100%;
    height: 320px;
    top: 0;
    z-index: 10;
    padding-top: 10px;
    position: fixed;
    background: url('../img/bg-login.jpg');
}

.header-child {
    max-width: 480px;
    width: 100%;
    height: 56px;
    top: 0;
    z-index: 10;
    padding-top: 8px;
    position: fixed;
    background-color: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 9%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.header-child .row {
    padding: 0 5px;
}

.header-child img {
    max-height: 38px;
    width: auto;
}

/* Header Search Bar */
.header-child .input-group {
    height: 38px;
}

.header-child .form-control {
    font-size: 13px;
    height: 38px;
}

.header-child .btn-link {
    padding: 0 10px;
    font-size: 18px;
}

.header-akun {
    max-width: 480px;
    width: 100%;
    height: 60px;
    top: 0;
    z-index: 10;
    padding-top: 10px;
    position: fixed;
    background: #28a745;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.header-image {
    max-width: 480px;
    width: 100%;
    height: 40px;
    z-index: 10;
    margin-top: 240px;
    position: fixed;
    background-color: #fff;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.circle-akun {
    width: 92px;
    height: 92px;
    border: 4px solid #ebebeb;
    border-radius: 100%;
    margin: -56px auto auto;
    background: #fff;
}

.agen-icon {
    margin-top: 4px;
}

.referal-banner {
    width: 90%;
    padding: 10px;
    cursor: pointer;
    background: #65e483;
    border: 1px dashed #28a745;
    border-radius: 4px;
    margin: auto;
    cursor: pointer;
}

.navigation {
    width: 100%;
    max-width: 480px;
    height: 65px;
    position: fixed;
    bottom: 0;
    z-index: 9;
    background-color: #fff;
    border-collapse: collapse;
    box-shadow: 0 -4px 20px 0 rgba(0, 0, 0, 0.08);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.navigation-login {
    width: 100%;
    max-width: 480px;
    height: 57%;
    position: fixed;
    bottom: 0;
    z-index: 9;
    background-color: #fff;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.navigation-shopping {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.shopping-cart {
    width: 92%;
    max-width: 450px;
    height: 50px;
    position: fixed;
    bottom: 80px;
    z-index: 9;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-collapse: collapse;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
    border-radius: 16px;
}

.navigation .content {
    text-align: center;
    padding: 8px 0;
    color: #9e9e9e;
    transition: all 0.2s ease;
}

.navigation .content:hover {
    color: #666;
}

.navigation .content-active {
    text-align: center;
    padding: 8px 0;
    color: #28a745;
    position: relative;
}

.navigation .content-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #28a745;
    border-radius: 2px;
}

.icon {
    line-height: 25px;
    padding-top: 9px;
}

.icon-nav {
    line-height: 20px;
    font-size: 22px;
    margin: 0 auto;
}

.navigation span {
    font-size: 11px;
    font-weight: 500;
}

.header-location {
    width: 100%;
    max-width: 480px;
    margin-top: 70px;
}

.header-location small {
    font-size: 12px;
}

.header-location .font-weight-bold {
    font-size: 13px;
    color: #333;
}

.slider {
    margin-top: -5px;
}

.swiper-container {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
}

.swiper-slide {
    background-size: cover;
    background-position: 50%;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.categories {
    width: 100%;
    max-width: 480px;
}

.categories .content {
    text-align: center;
    margin-bottom: 16px;
}

.categories .content a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories .content .icon {
    background: #fff;
    border-radius: 16px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px -1px rgb(0 0 0 / 12%);
    transition: all 0.2s ease;
}

.categories .content .icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px -2px rgb(0 0 0 / 15%);
}

.categories .content small {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    display: block;
}

/* New Horizontal Scroll Categories */
.categories-section {
    width: 100%;
    max-width: 480px;
}

.categories-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 16px;
}

.categories-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    padding: 0;
    /* Add extra space at the end for better UX */
    padding-right: 24px;
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    width: 68px;
}

.category-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #31353B;
}

.category-icon {
    background: #fff;
    border-radius: 16px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px -1px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.category-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.15);
}

.category-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.category-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ads {
    width: 100%;
    max-width: 480px;
}

.ads img {
    width: 100%;
}

/* New Ads Section Styling */
.ads-section {
    width: 100%;
    max-width: 480px;
}

.ads-banner {
    width: 100%;
    border-radius: 0;
}

/* Product Horizontal Scroll */
.products-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 16px;
}

.products-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.products-scroll {
    display: flex;
    gap: 12px;
    padding-right: 24px;
}

.product-card-scroll {
    flex: 0 0 auto;
    width: 150px;
}

.product-card-scroll .product-content {
    display: flex;
    flex-direction: column;
    height: 210px;
}

.product-card-scroll .product-content img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

/* Card Body Product */
.card-body-product {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    margin: 0 0 6px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-desc {
    font-size: 12px;
    color: #777;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-section {
    margin-bottom: 8px;
}

.product-discount {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.product-discount .badge {
    font-size: 9px;
    padding: 2px 5px;
}

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-price .price-value {
    font-size: 15px;
    font-weight: 700;
    color: #28a745;
}

.product-price .price-unit {
    font-size: 11px;
    color: #777;
    margin-left: 2px;
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #28a745;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.btn-add-cart:hover {
    background: #218838;
}

.btn-out-stock {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #aaa;
    border: none;
    border-radius: 8px;
    margin-top: auto;
}

/* Quantity Control for Product Cards */
.cart-qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
}

.cart-qty-control .btn-qty-minus,
.cart-qty-control .btn-qty-plus {
    width: 32px;
    height: 32px;
    border: none;
    background: #28a745;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-qty-control .btn-qty-minus:hover,
.cart-qty-control .btn-qty-plus:hover {
    background: #218838;
}

.cart-qty-control .btn-qty-plus.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cart-qty-control .qty-value {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.product {
    width: 100%;
    max-width: 480px;
    margin-top: 90px;
}

.product-content {
    background: #fff;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-shadow-product {
    box-shadow: 0 3px 10px -2px rgb(0 0 0 / 13%);
}

.product-content img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

/* Grid Card Layout - 2 Columns */
.col-6 .product-content {
    height: auto;
}

.col-6 .product-content img {
    height: 130px;
}

.shopping-cart-product {
    width: 100%;
    max-width: 480px;
    margin-top: 85px;
    padding-bottom: 10px;
}

.content-cart {
    background: #fff;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    position: relative;
}

.content-cart .img-content {
    float: left;
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}

.content-cart .img-content-bank {
    float: left;
    width: 65px;
}

.content-cart .number-goods {
    position: absolute;
    right: 0;
    bottom: 0;
}

.stepper .stepper-input-wrap input {
    font-size: 13px;
    font-weight: 500;
    width: 30px;
    border: 1px solid #eee;
}

.stepper {
    border-radius: 12px;
    height: 20px;
    display: flex;
}

.stepper .stepper-button-minus {
    border-radius: 12px 0 0;
    border: 0;
    background: #eee;
    width: 25px;
}

.stepper .stepper-button-plus {
    border-radius: 0 0 12px 0;
    border: 0;
    background: #eee;
    width: 25px;
}

.content-shadow-product {
    box-shadow: 0 3px 10px -2px rgb(0 0 0 / 13%);
}

.content-address {
    width: 100%;
    max-width: 480px;
    margin-top: 80px;
}

.address-list {
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}

.address-list .address-info {
    display: flex;
}

.label_item {
    height: 24px;
    margin-right: 16px;
    min-width: 16px;
}

.radio_item {
    opacity: 0;
    width: 24px;
    height: 24px;
    position: absolute;
}

.address-list .address-content {
    width: 80%;
    top: 39px;
    font-size: 13px;
    letter-spacing: .5px;
    text-align: left;
    color: #4a4a4a;
}

.address-list .head {
    margin-top: -2.5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.address-list .head .label {
    font-weight: 600;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: left;
    color: #4a4a4a;
    text-transform: capitalize;
    max-width: 80%;
    margin: 0;
    height: 17px;
}

.address-list .address-desc {
    overflow: hidden;
    font-size: 13px;
    letter-spacing: .5px;
    text-align: left;
    height: 36px;
    margin: 8px 0 0;
    color: #4a4a4a;
}

.address-list .change-address {
    display: flex;
    align-items: center;
}

/* Out of Stock Product Styling */
.product-out-of-stock {
    filter: grayscale(1);
    opacity: 0.8;
}

.product-out-of-stock img {
    opacity: 0.6;
}

.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
    border: 2px solid #fff;
}

.cpc-out-of-stock {
    filter: grayscale(1);
    opacity: 0.8;
}

.cpc-badge.cpc-outstock {
    background: #ffebee;
    color: #c62828;
}