.elementor-83 .elementor-element.elementor-element-22fc1f1 > .elementor-widget-container{margin:0px 0px 70px 0px;}/* Start custom CSS for shortcode, class: .elementor-element-22fc1f1 *//* Grid & card */
.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* jarak antar card */
    padding: 0; /* default desktop */ 
    width: 100% !important;
    max-width: 1300px !important;
     margin: 0 auto !important;
    
}

.custom-product-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s;
    padding: 0; /* card padding bisa diatur mobile */
    border: 1px solid #E6E6E6;
    
}
.custom-products-title::after {
    content: "";                  /* wajib ada */
    display: block;               /* supaya tampil sebagai block */
    width: 60px;                  /* lebar garis */
    height: 3px;                  /* tinggi garis */
    background-color: #5C9735;    /* warna garis */
    margin: 10px auto 40px auto;     /* jarak atas & center horizontal */
    border-radius: 2px;           /* sudut sedikit membulat */
}

.custom-product-item a img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.custom-product-item h2 {
    font-size: 21px;
    margin: 10px 0 5px 0;
    font-weight: 700;
    
}

.custom-product-item p.price {
    font-size: 15px;
    margin-bottom: 10px;
}

/* Tombol horizontal */
.custom-product-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* jarak antar tombol */
    margin: 15px 0;
}

/* Tombol Add to Cart */
.custom-product-item .button {
    background-color: #006400 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}

/* Hover Add to Cart */
.custom-product-item .button:hover {
    background-color: #004d00 !important;
}

/* Tombol WhatsApp */
.wa-button {
  background-color: #25D366 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 38px;
  padding: 0 15px;
}

/* Hover WhatsApp */
.wa-button:hover {
    background-color: #1A9F4B !important;
    color: #fff !important;
}

/* Responsive Tablet -> Mobile */
@media (max-width: 768px) {
    .custom-products-grid {
        grid-template-columns: 1fr !important;
        padding: 0 5px !important; /* container mobile */
        gap: 15px !important;     /* jarak antar card */
    }

    .custom-product-item {
        padding: 0 !important; /* card tetap tanpa padding ekstra */
    }

    .custom-product-item a img {
        width: 100% !important;
        height: 200px !important;
    }

    .custom-product-item h2 {
        font-size: 18px !important;
        margin: 8px 0 4px 0 !important;
        
    }

    .custom-product-item p.price {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .custom-product-buttons {
        flex-direction: row !important;
        gap: 8px !important; 
        margin: 8px 0 20px 0 !important;
        justify-content: center !important;
        padding: 0 10px !important; /* beri jarak kiri & kanan */
        box-sizing: border-box !important;
    }

    .custom-product-item .button,
    .wa-button {
        font-size: 14px !important;
        padding: 6px 14px !important;
    }
    .custom-add-to-cart {
        padding: 0 10px !important;
        border-radius: 5px !important;
        font-size: 13px !important;
    }
    .custom-add-to-cart:hover {
        background: #538e2c !important;
    }
}
@media (max-width: 768px) {
    .custom-products-title {
        font-size: 1.8em !important;       /* ukuran font lebih kecil di mobile */
        width: 100%;                        /* full width */
        margin-left: auto;                   /* center horizontal */
        margin-right: auto;                  /* center horizontal */
        padding: 0 10px !important;          /* padding kiri-kanan */
        text-align: center;                  /* center text */
        margin-bottom: 30px !important;
        position: relative;                  /* agar ::after bisa absolute */
    }

    /* Menambahkan garis dekorasi di bawah judul (after) */
    .custom-products-title::after {
        content: "";
        display: block;
        width: 60px;                         /* panjang garis */
        height: 2px;                         /* tebal garis */
        background-color: #5C9735;           /* warna garis */
        margin: 10px auto 0 auto;            /* jarak atas-bawah + center */
        border-radius: 2px;                  /* rounded edge */
    }
}

@media (max-width: 768px) {
  .custom-product-item .button, .wa-button {
    font-size: 13px !important;
    padding: 6px 10px !important;
  }
}
@media (min-width: 769px) {
  .custom-add-to-cart {
    height: 38px;
    font-size: 14px;
    border-radius: 5px;
    padding: 0 15px; /* beri jarak kiri-kanan */
    background-color: #5C9735; /* contoh warna */
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
  }

  .custom-add-to-cart:hover {
    background-color: #538e2c; /* efek hover */
  }
}
/* =========================================================
   1. Tablet (769px - 1024px)
   ========================================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .custom-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 card per baris */
        gap: 20px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .custom-product-item {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        border: 1px solid #E6E6E6 !important;
        border-radius: 10px !important;
        background: #fff !important;
        padding: 10px !important;
    }

    .custom-product-item a img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
        border-radius: 5px !important;
    }

    .custom-product-item h2 {
        font-size: 15px !important;
        margin: 8px 0 5px 0 !important;
        
    }

    .custom-product-item p.price {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .custom-product-item .custom-product-buttons {
        display: flex !important;
        flex-direction: column !important; /* vertikal */
        gap: 8px !important;
        justify-content: flex-start !important;
        align-items: stretch !important; /* full-width */
        margin: 10px 0 !important;
        padding: 0 !important;
    }

    .custom-product-item .custom-product-buttons .custom-add-to-cart,
    .custom-product-item .custom-product-buttons .wa-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 30px !important;       /* paksa tinggi tombol */
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   2. Mobile (≤768px)
   ========================================================= */
@media (max-width: 768px) {
    .custom-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 card per baris */
        gap: 10px !important;
        width: 100% !important;
        padding: 0 5px !important;
        margin: 0 auto !important;
    }

    .custom-product-item {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        border: 1px solid #E6E6E6 !important;
        border-radius: 10px !important;
        background: #fff !important;
        padding: 10px !important;
    }

    .custom-product-item a img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        border-radius: 5px !important;
    }

    .custom-product-item h2 {
        font-size: 18px !important;
        margin: 6px 0 4px 0 !important;
        color: #333;
    }

    .custom-product-item p.price {
        font-size: 14px !important;
        margin-bottom: 6px !important;
       
    }

    .custom-product-item .custom-product-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        justify-content: flex-start !important;
        align-items: stretch !important; /* full-width */
        padding: 0 !important;
        margin: 6px 0 !important;
    }

    .custom-product-item .custom-product-buttons .custom-add-to-cart,
    .custom-product-item .custom-product-buttons .wa-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
    }
}/* End custom CSS */