/*
========================================================================
 Vanshop Template V2 - store.css (Modern & Responsive)
========================================================================
*/

/* Product Wrap (Catalog) */
.produk-wrap {
    width: 180px;
    height: 270px;
    padding: 10px;
    margin: 6px;
    float: left;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    transition: box-shadow 0.2s, transform 0.2s;
}

.produk-wrap:hover {
    background-color: #f6fbeb;
    border-color: #7EAD01;
    box-shadow: 0 4px 14px rgba(126, 173, 1, 0.16);
}

.produk-wrap div {
    margin-bottom: 5px;
    text-align: center;
}

.image-iner {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    text-align: center;
    overflow: visible !important;
}

.image-iner img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 4px;
}

.harga-lama {
    color: #dc2626;
    text-decoration: line-through;
    font-size: 11px;
}

.harga-jual {
    color: #557500;
    font-weight: 700;
    font-size: 14px;
}

.no-image {
    width: 160px;
    height: 160px;
    border: 1px dashed #d1d5db;
    background-color: #f9fafb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.no-image span {
    display: block;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
}

.trans {
    top: 0;
    position: absolute;
    width: 160px;
    height: 160px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 4px;
}

.trans span {
    display: inline-block;
    background-color: #dc2626;
    padding: 6px 10px;
    color: white;
    margin-top: 60px;
    font-weight: bold;
    font-size: 11px;
    border-radius: 3px;
}

/* Single Product Detail (Legacy) */
.image-section {
    float: left;
    width: 100%;
    padding: 0 10px 10px 0;
    box-sizing: border-box;
    text-align: center;
}

.image-section .image-wrap {
    text-align: center;
    display: inline-block;
}

.image-section .image-iner {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: visible !important;
}

.image-section .image-iner img {
    max-width: 200px;
    max-height: 200px;
}

.image-wrap {
    text-align: center;
}

.desc-section {
    width: 100%;
    margin-top: 15px;
    box-sizing: border-box;
}

.produk-name {
    margin: 10px 0;
    font-size: 26px;
    color: #222222;
    font-weight: 700;
    line-height: 1.3;
}

.produk-name-kategori a {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    display: block;
    margin-top: 4px;
}

.produk-name-kategori a:hover {
    color: #7EAD01;
}

.produk-deskripsi {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.thumb-wrap {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumb-wrap img {
    border-radius: 3px;
    border: 1px solid #e5e7eb;
}

.meta-produk {
    font-size: 18px;
    padding: 12px 16px;
    background-color: #f9fafb;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: 15px 0;
    box-sizing: border-box;
}

span.stok, span.harga {
    display: inline-block;
    width: 110px;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
}

.button-wrap {
    padding: 14px 16px;
    margin-top: 10px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-sizing: border-box;
}

.button-wrap label {
    margin-right: 10px;
    display: inline-block;
    font-weight: 600;
    color: #374151;
}

.button-wrap input[type="text"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
}

.button-wrap input[type="submit"] {
    background: #7EAD01;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.button-wrap input[type="submit"]:hover {
    background: #6b9300;
}

/* Cart Buttons */
a.clear, a.checkout {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-right: 6px;
    margin-top: 8px;
    transition: all 0.2s;
}

a.clear {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

a.clear:hover {
    background-color: #e5e7eb;
    text-decoration: none;
}

a.checkout {
    background-color: #7EAD01;
    color: #ffffff;
    border: 1px solid #7EAD01;
}

a.checkout:hover {
    background-color: #6b9300;
    color: #ffffff;
    text-decoration: none;
}

.note-cart {
    background-color: #f9fafb;
    border: 1px dashed #d1d5db;
    padding: 10px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    border-radius: 4px;
}

/* Order & Form */
form.order label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin: 8px 0 4px;
    font-size: 13px;
}

form.order input[type="text"], 
form.order textarea {
    width: 100%;
    max-width: 450px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

form.order input[type="submit"] {
    background: #7EAD01;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.error {
    padding: 8px 12px;
    background-color: #fef2f2;
    border: 1px solid #f87171;
    color: #991b1b;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.sukses {
    padding: 8px 12px;
    background-color: #f0fdf4;
    border: 1px solid #4ade80;
    color: #166534;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* Tables Responsive */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    display: table;
}

table th {
    background-color: #7EAD01;
    color: #ffffff;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    text-align: left;
    border: 1px solid #6b9300;
}

table td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}

table tr.bg td {
    background-color: #f9fafb;
}

/* AllProduct (Front page) */
.AllProduct {
    display: inline-block;
    vertical-align: top;
    width: 180px;
    margin: 8px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: visible !important;
}

.AllProduct:hover {
    background-color: #f6fbeb;
    border-color: #7EAD01;
    box-shadow: 0 4px 14px rgba(126, 173, 1, 0.16);
}

.AllProduct a {
    color: #1f2937;
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-top: 6px;
}

.AllProduct a:hover {
    color: #7EAD01;
}

.AllProduct img {
    max-width: 160px;
    max-height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image-all-product {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border: 1px dashed #d1d5db;
    background-color: #f9fafb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.no-image-all-product span {
    color: #9ca3af;
    font-size: 11px;
}

/* ========================================================
   RESPONSIVE PRODUCT CARD BREAKPOINTS
   ======================================================== */
@media (max-width: 580px) {
    .AllProduct, .produk-wrap {
        width: calc(50% - 16px) !important;
        margin: 8px !important;
        height: auto !important;
        min-height: 250px !important;
    }
    .AllProduct img:not(.easyzoom-flyout img), 
    .produk-wrap img:not(.easyzoom-flyout img), 
    .image-iner, .no-image, .no-image-all-product {
        width: 100% !important;
        max-width: 130px !important;
        height: auto !important;
        max-height: 130px !important;
    }
}

@media (max-width: 360px) {
    .AllProduct, .produk-wrap {
        width: 100% !important;
        margin: 8px 0 !important;
    }
}
