* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

body {
    background-color: #ffffff;
    color: #222;
}

/* Halaman Produk */
.produk-page {
    min-height: 100vh;
    padding: 95px 0 70px;
}

.header-produk {
    display: flex;
    justify-content: space-between;
}

/* Judul */
.page-title {
    font-size: 50px;
    font-weight: 800;
    color: #00923f;
    margin-bottom: 10px;
}

.page-title span {
    color: #ff9700;
}

.page-subtitle {
    font-size: 17px;
    line-height: 1.5;
    color: #00923f;
    margin-bottom: 0;
}

/* Top Action */
.top-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 0;
    gap: 12px;
}

.search-box {
    width: 370px;
    height: 50px;
    background-color: #00923f;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 0 7px 0 18px;
    border: 2px solid #FF9900;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
}

.search-box input::placeholder {
    color: #ffffff;
}

.search-box button {
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.btn-order {
    background-color: #00923f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 10px 28px;
    border-radius: 25px;
    text-decoration: none;
    border: 2px solid #ff9700;
}

.btn-order:hover {
    background-color: #007a35;
    color: #ffffff;
}

.btn-info-custom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ff9700;
    background-color: #00923f;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-info-custom a {
    color: #ffff;
    font-size: 20px;
    font-weight: 800;
}

.btn-info-custom:hover {
    background-color: #007a35;
    color: #ffffff;
}

.nav-item .nav-link.active {
    color: #ff9700;
    font-weight: 700;
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 30px;
    min-height: 30px;
    text-decoration: none;
}

.user-cart ul {
    align-items: center;
    gap: 24px !important;
    margin-bottom: 0;
}

.user-cart li {
    display: flex;
    align-items: center;
}

.user-cart a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    line-height: 1;
    text-decoration: none;
}

.user-cart svg {
    width: 25px;
    height: 25px;
    display: block;
    flex: 0 0 25px;
}

.user-history-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    transition: color .2s ease;
}

.user-history-link:hover {
    color: #ff9700;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff9700;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Card */
.card-produk {
    border-style: none;
    background-color: #fff;
    filter: drop-shadow(0px 2px 4px #cfcfcf);
    padding: 20px;
    border-radius: 15px;
}

.produk {
    row-gap: 54px;
    margin-top: 4px;
}

.product-db-card {
    width: 16.75rem;
    min-height: 354px;
    margin: 0 auto;
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform .2s ease, filter .2s ease;
}

.product-db-card:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0px 5px 8px #bdbdbd);
}

.card-produk .card-img-top {
    width: 152px;
    height: 190px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    padding-bottom: 8px;
}

.product-image-link {
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
}

.product-title-link {
    color: #111;
    text-decoration: none;
}

.card-produk .card-title {
    color: #111;
    font-size: 1.05em;
    margin-bottom: 4px;
    font-weight: 500;
}

.card-produk .card-price {
    font-weight: 700;
    color: #111;
    font-size: 1em;
    margin-bottom: 2px;
}

.card-produk .card-desc {
    font-size: .63em;
    color: #333;
    line-height: 1.25;
    min-height: 25px;
    margin-bottom: 8px;
}

.card-weight {
    color: #00923f;
    font-size: .85rem;
    font-weight: 800;
}

.product-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-action-row form {
    margin: 0;
}

.weight-addCart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.weight-select {
    width: 82px;
    height: 28px;
    border: 1px solid #8d8d8d;
    border-radius: 5px;
    background: #fff;
    color: #606060;
    font-size: .82rem;
    padding: 0 8px;
}

.btn-detail-produk,
.add-cart {
    border-radius: 7px;
    border: 0;
    background: #ff9700;
    color: #fff;
    font-size: .73rem;
    font-weight: 800;
    padding: 7px 18px;
    min-width: 118px;
}

.btn-detail-produk:hover,
.add-cart:hover {
    background: #e88700;
    color: #fff;
}

.user-name-link {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.user-name-link:hover {
    color: #ff9700;
}

.qty-box input {
    width: 66px;
    border: 0;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    font-weight: 800;
}

.empty-cart-note {
    width: 100%;
    border-radius: 14px;
    background: #f2f2f2;
    color: #777;
    padding: 18px;
    text-align: center;
    font-weight: 700;
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 34px;
    align-items: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    padding: 28px;
}

.product-detail-image {
    border-radius: 16px;
    background: #f2f2f2;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-price {
    color: #ff9700;
    font-weight: 900;
}

.detail-weight {
    color: #00923f;
    font-weight: 800;
}

.detail-cart-form {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.detail-cart-form input {
    width: 90px;
    border: 2px solid #ff9700;
    border-radius: 12px;
    padding: 8px 10px;
}

.detail-variant-select {
    min-width: 150px;
    border: 2px solid #ff9700;
    border-radius: 12px;
    padding: 8px 10px;
    color: #00923f;
    font-weight: 800;
}

.order-history-list {
    display: grid;
    gap: 14px;
}

.order-history-card,
.order-detail-card {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
    padding: 18px;
}

.order-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 18px;
}

.order-history-info {
    min-width: 0;
}

.order-history-info strong {
    display: block;
    color: #111;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.order-history-info p {
    max-width: 760px;
    margin: 0 0 4px;
    color: #00923f;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-history-card span {
    display: block;
    color: #777;
}

.order-status-badge {
    min-width: 92px;
    min-height: 32px;
    border-radius: 999px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1;
    text-transform: capitalize;
}

.status-menunggu {
    background: #f0f0f0;
    color: #333;
}

.status-diproses {
    background: #fff0d9;
    color: #d87a00;
}

.status-selesai {
    background: #e5f6eb;
    color: #00923f;
}

.status-dibatalkan {
    background: #ffe3e3;
    color: #d71919;
}

.detail-order-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cart-line,
.cart-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-line span {
    display: block;
    color: #777;
}

.cart-total-line {
    border-bottom: 0;
    color: #00923f;
}

/* Responsive */
@media (max-width: 1200px) {
    .produk-page {
        padding: 70px 18px 60px;
    }

    .header-produk {
        gap: 28px;
    }

    .page-title {
        font-size: 44px;
    }

    .search-box {
        width: min(100%, 350px);
    }

    .product-db-card {
        width: min(100%, 17rem);
    }
}

@media (max-width: 992px) {
    .produk-page {
        padding-top: 58px;
    }

    .header-produk {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 24px;
    }

    .header-produk > [class*="col-"] {
        width: 100%;
    }

    .page-title {
        font-size: 40px;
    }

    .page-subtitle {
        max-width: 640px;
        margin: 0 auto;
    }

    .top-action {
        width: 100%;
        align-items: center;
        margin-top: 0;
    }

    .search-box {
        width: min(100%, 420px);
    }

    .produk {
        row-gap: 38px;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
    }

    .product-detail-image {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .order-history-card {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 768px) {
    .produk-page {
        padding: 45px 14px;
    }

    .page-title {
        font-size: 32px;
        text-align: center;
    }

    .page-subtitle {
        text-align: center;
        font-size: 13px;
    }

    .top-action {
        align-items: center;
        margin-top: 0;
    }

    .search-box {
        width: 100%;
        max-width: 330px;
    }

    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-db-card {
        width: min(100%, 18rem);
        min-height: 0;
    }

    .card-produk .card-img-top {
        width: 150px;
        height: 180px;
    }

    .product-image-link {
        min-height: 180px;
    }

    .weight-addCart {
        width: 100%;
    }

    .weight-select {
        flex: 0 0 86px;
    }

    .add-cart {
        flex: 1;
        min-width: 128px;
    }

    .product-detail-card {
        padding: 20px;
        gap: 22px;
    }

    .product-detail-image img {
        object-fit: contain;
        background: #fff;
    }

    .detail-cart-form {
        flex-direction: column;
    }

    .detail-cart-form input,
    .detail-variant-select,
    .detail-cart-form .btn-order {
        width: 100%;
    }

    .order-history-card {
        grid-template-columns: 1fr;
    }

    .order-history-card {
        text-align: left;
    }

    .order-history-info p {
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .produk-page {
        padding: 34px 14px 46px;
    }

    .page-title {
        font-size: 34px;
        line-height: 1.1;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .search-box {
        height: 48px;
        max-width: 100%;
    }

    .produk {
        --bs-gutter-x: 0;
        row-gap: 30px;
        margin-top: 4px;
        justify-content: center;
    }

    .product-db-card {
        width: min(100%, 18.5rem);
        margin-left: auto;
        margin-right: auto;
    }

    .weight-addCart {
        flex-direction: column;
        gap: 9px;
    }

    .weight-select,
    .add-cart {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .weight-select {
        height: 42px;
        min-height: 42px;
        max-height: 42px;
        padding: 0 12px;
        font-size: .95rem;
        line-height: 42px;
    }

    .add-cart {
        min-height: 40px;
        padding: 8px 16px;
        font-size: .9rem;
    }

    .product-detail-card {
        border-radius: 14px;
        padding: 16px;
    }

    .detail-price {
        font-size: 1.45rem;
    }
}

@media (max-width: 380px) {
    .product-db-card {
        width: 100%;
        padding: 18px 14px 16px;
    }

    .card-produk .card-img-top {
        width: 135px;
        height: 165px;
    }
}
